Questions tagged [brownie]
Brownie is a Python-based development and testing framework for smart contracts targeting the Ethereum Virtual Machine.
364 questions
1 vote
1 answer
65 views
Is there an option to prevent Hardhat from slowing down, e.g., by limiting Hardhat's history?
I need to run thousands of transactions for my test suite, but after a while, my local Hardhat node becomes very slow. How can I make it faster? Would using the --max-memory option help? Can I set it ...
0 votes
1 answer
33 views
ContractContainer still empty in Brownie after contract Deployment
Please I know this question might be a repetition of what was previously asked here but the answers didn't solve my problem. In my case I actually used the brownie run scripts/deploy.py --network ...
0 votes
0 answers
47 views
Trouble publishing contract source code in Brownie: ConnectionError 403
I'm encountering an issue while attempting to deploy a contract using Brownie and publish its source code to Etherscan. The deployment itself is successful, but I'm unable to publish the contract ...
0 votes
1 answer
282 views
I am trying to make my contract get to call approve function of an erc20 token
I am trying to build a contract that allows user to supply/deposit token to the aavae protocol but i need to make my contract get approval of the token amount to be spent by the contract. I tried ...
1 vote
0 answers
22 views
Is brownie supporting OpenZeppelin/[email protected]?
I got the following answer after runing brownie pm install OpenZeppelin/[email protected] WARNING: Unable to compile OpenZeppelin/[email protected] due to a AttributeError - you ...
0 votes
1 answer
37 views
How to change response from oracle?
I need to test my contract, and to test I need to change data that I recieve from ChainLink Oracle (I get Ethereum price from it). So how can I change price on ETH local for tests using Ganache-Cli or ...
0 votes
1 answer
618 views
ValueError: max fee per gas less than block base fee - Brownie
I am getting the error "ValueError: max fee per gas less than block base fee" when I try to run the following script using Brownie. I think I figured out that when I send a transaction, I ...
0 votes
1 answer
148 views
Having problems installing Brownie
I have been struggling installing brownie for while now and i cant seem to figure it out. I am quite new to all of this so all help is appreciated:) Running python 3.9.11. Using a an m2 mac with ...
1 vote
1 answer
44 views
brownie test results in ValueError: sender account not recognized
I am trying to run curve finance's multi-rewards test suite with brownie test, however, the tests fail with the following error: accounts = <brownie.network.account.Accounts object at 0x103e0caf0&...
0 votes
1 answer
1k views
How to call `quoteExactInputSingle` on quoter2 uniswap using python
I'm trying to call like this in ape def SushiswapV3quoteExactInputSingleV3( router, _from, tokenIn: str, tokenOut: str, fee: int, amountIn: int, sqrtPriceLimitX96: int = 0, ...
1 vote
0 answers
110 views
How can we get the result of swap in curve.fi like `getAmountsOut` for uniswapV2
I'm trying to get the price for the swap WETH->DAI by calling get_dy but there is no direct pool in curve. I went to the UI & put in this swap & got this. tricypto: WETH -> USDT -> ...
1 vote
0 answers
973 views
has anyone seen this error installing brownie?
Banging my head against a wall trying this. have tried uninstalling cytoolz, pipx, and reinstalling but keep getting this error trying to install brownie. Collecting click==8.1.3 (from eth-brownie) ...
1 vote
4 answers
651 views
Verification of contract using Brownie
I'm at the point of a solidity course where I need to get the API key token from etherscan.io. I followed all the steps, but my code breaks when I use Brownies deploy function with "...
1 vote
0 answers
40 views
Vyper: How to test internal helper functions?
I'm writing a Roulette contract as a learning activity in Vyper. My contract seems to be working through manual testing, and now I'm starting to write unit tests. I have an internal helper function ...
0 votes
1 answer
240 views
Brownie Explorer API not set for this network
I am trying to deploy a solidity contract with the source code to a Sepolia test net, using Brownie. The contract deploys successfully, but the source code does not. I keep getting this error. File &...