Category : brownie

i am trying open a ERC721 smart contract and loop through the token ids and set the URI of each of each iteration. I execute the script with brownie run scripts/parcel_asset/testpyodbc.py. I am trying to use an ODBC driver named pyodbc to query an Access database and create a cursor to iterate. It works fine ..

Read more

Macbook Pro : Monterey Intel Core i7 Brownie v1.17.2 I am learning solidity according to reference(https://www.youtube.com/watch?v=M576WGiDBdQ&t=25510s). What I tried to do here, is use brownie to deploy a contract(FundMe) in a script (deploy.py),then write a test script(test_can_fund_and_withdraw.py) The error occurs when I run the test script.I think it’s because in the testing script import the ..

Read more

I’m working from brownie/python trying to do a smart contract When I try to swap from PancakeSwap on BNB testnet (https://pancake.kiemtienonline360.com) calling the function swapExactTokensForTokens from a interface it returns me "Gas estimation failed: ‘execution reverted’. This transaction will likely revert." but I know probably it’s nothing related to gas Here it’s my approve function: ..

Read more

I’m working from brownie/python trying to do a smart contract When I try to swap from PancakeSwap on BNB testnet (https://pancake.kiemtienonline360.com) calling the function swapExactTokensForTokens from a interface it returns me "Gas estimation failed: ‘execution reverted’. This transaction will likely revert." but I know probably it’s nothing related to gas Here it’s my approve function ..

Read more

After installing Brownie, I’m receiving the following error anytime I try to run a brownie command. I’m not sure whether this is a python issue. I’ve successfully installed brownie via: pip install eth-brownie Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.10/bin/brownie", line 33, in <module> sys.exit(load_entry_point(‘eth-brownie==1.17.2’, ‘console_scripts’, ‘brownie’)()) File "/Library/Frameworks/Python.framework/Versions/3.10/bin/brownie", line 25, in importlib_load_entry_point return next(matches).load() ..

Read more

ParserError: Source "@openzeppelin/contracts/token/ERC20/ERC20.sol" not found: File not found. while I’m deploying with brownie on default local ganache-cli. Command: $ brownie compile gets: Brownie v1.17.2 – Python development framework for Ethereum Compiling contracts… Solc version: 0.8.11 Optimizer: Enabled Runs: 200 EVM Version: Istanbul CompilerError: solc returned the following errors: ParserError: Source "@openzeppelin/contracts/token/ERC20/ERC20.sol" not found: File not ..

Read more

I’m new to programming and currently following a brownie tutorial. While interacting with smart contracts, my tutor puts a tx.wait(1) after every transaction that requires a state change of the contract. I’m guessing tx.wait(1) means that we tell brownie to wait for at least one confirmation of the transaction before proceeding further. But tx.wait(1) is ..

Read more

am following Solidity, Blockchain, and Smart Contract Course – Beginner to Expert Python Tutorial on youtube https://www.youtube.com/watch?v=M576WGiDBdQ i got this error while trying to deploy my ERC20 token, I tried changing the version of OpenZappelin on my brownie-config.yaml file but still did not. Please how can i fix this issue? web Source: Python..

Read more

I am quite new to coding with limited experience, after following the Patrick Collins tutorial on flashloans from AAVE, everything works fine and have the environment installed I receive this error upon deploying: INFO: Could not find files for the given pattern(s). Brownie v1.17.2 – Python development framework for Ethereum File "..localpipxvenvseth-brownielibsite-packagesbrownie_cli_main_.py", line 64, in ..

Read more