Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 64551

Brownie is a Python-based development and testing framework for smart contracts targeting the Ethereum Virtual Machine.

0 votes
1 answer
180 views

How to connect already running ganache-cli from brownie

I have tried running brownie run scripts/deploy.py without a network option, but it automatically creates a new ganache-cli. …
Emrah's user avatar
  • 1,702
1 vote
0 answers
160 views

Deployed Contract Doesn't Show up

I deploy a smart contract using Brownie to local Ganache blockchain (GUI, not CLI). I can see every transaction that I do and accounts (tx-count). … Is Ganache GUI not working with Brownie or something? Here is the code. from brownie import accounts, SimpleStorage def main(): # accounts[0] refers to the first account in the Ganache. …
Emrah's user avatar
  • 1,702
0 votes
1 answer
119 views

How to skip blocks on forked mainnet using Brownie

How about Brownie? Is there any way I can skip blocks? …
Emrah's user avatar
  • 1,702
0 votes

How to skip blocks on forked mainnet using Brownie

Brownie provides chain object to access blockchain related information. Using chain, one can mine and skip blocks. …
Emrah's user avatar
  • 1,702
2 votes
Accepted

abi.encode() in Python

You can import convert from brownie and use convert.to_bytes(_data) from Python script. Here is full link. …
Emrah's user avatar
  • 1,702
0 votes
2 answers
169 views

How to link deployed library to contract in brownie?

As far as I know, brownie automatically links the library to contract. Is there a way to do this manually? I have bunch of contracts in different projects where some use library and some don't. …
Emrah's user avatar
  • 1,702
2 votes
2 answers
231 views

What are the node providers for Genosis Network (xDai)?

Which node provider can be used to fork Genosis Network (xDai) using brownie? Alchemy, infura and moralis does not provide service. I tried getBlock but doesn't work at all. …
Emrah's user avatar
  • 1,702
0 votes
Accepted

Brownie: Is it safe to store actual private key?

You can access them in ~/.brownie/accounts on Linux/MAC OS (C:\Users\<User>\Appdata/Roaming/brownie/accounts on Windows). These files are encrypted using aes-128-ctr. …
Emrah's user avatar
  • 1,702
0 votes
Accepted

How can I properly define a value and call it with .retrieve in Brownie?

You store the result of retrieve()function in updated_store_value but print updated_stored_value. These are two different variables which causes an error.
Emrah's user avatar
  • 1,702
1 vote
Accepted

How to access Struct values in brownie

You can do this: # Get accoun account = get_account() # Deploy Contract contract = ContractName.deploy( {"from": account} ) # Retrieve the latest contract contract = ContractName[-1] print(contr …
Emrah's user avatar
  • 1,702