Questions tagged [brownie]

236 questions
9
votes
8 answers

Pipx failed to build packages

When I run the command pipx install eth-brownie I receive the following error message, fatal error from pip prevented installation. Full pip output in file: /Users/gentgjonbalaj/.local/pipx/logs/cmd_2021-10-22_11.10.14_pip_errors.log pip failed…
GentGjonbalaj
  • 147
  • 1
  • 8
8
votes
1 answer

Brownie not working: Cython undefined symbol _PyGen_Send

I set up my development environment on Fedora 35 and when I run any brownie command such as $ brownie console or even brownie --version I get the following error: Traceback (most recent call last): File "/home/philippbunke/.local/bin/brownie",…
PhilippB
  • 331
  • 2
  • 8
8
votes
4 answers

Brownie doesn't automatically attach to local ganache when I have Ganache open in the background. It is stuck with ganache-cli

Brownie doesn't automatically attach to local ganache when I have Ganache open in the background. It is stuck with ganache-cli (1st image) (2nd image is what I am looking for). Can someone help?
waupelani
  • 107
  • 1
  • 3
6
votes
6 answers

Execution reverted during call: This transaction will likely revert. If you wish to broadcast, include `allow_revert:True`

I'm trying to make a transaction to create an NFT collectible and the transaction gets reverted with the message: Gas estimation failed: 'execution reverted'. This transaction will likely revert. If you wish to broadcast, you must set the gas limit…
OmerS
  • 153
  • 2
  • 9
6
votes
3 answers

v0.8 AggregatorV3Interface.sol , its available in @chainlink/contracts?

I get a error when i change the version to 0.8 , but works fine with 0.6, how i see the most recent version? , i tried downloaded from npm install @chainlink/contracts --save, but only works with mock mode. This is my…
Irwing Tello
  • 179
  • 1
  • 8
5
votes
3 answers

Deploying Uniswap v2 / Sushiswap or similar in Brownie, Hardhat or Truffle test suite

I am writing an automated test suite that needs to test functions against Uniswap v2 style automated market marker: do swaps and use different order routing. Thus, routers need to be deployed. Are there any existing examples of how to deploy a…
Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435
5
votes
6 answers

Import "brownie" could not be resolved in Pylance

Error is: Import "brownie" could not be resolvedPylance I know there are other SO posts that refer to this, but it seems most of them are talking about booting up a new env and installing x package into that virtual env. However with Brownie, I'm…
user12457151
  • 853
  • 2
  • 12
  • 25
5
votes
4 answers

solidity - brownie compile - Status 404 getting package version from GitHub

I was thinking that the issue was related to the versioning of the release but after used the last version of all packages imported I have the same issue. Can someone help me with this? Brownie v1.17.1 - Python development framework for Ethereum …
user15606993
5
votes
1 answer

Weird error using Smart Contracts with @usedapp and @ethersproject/contracts

Hello there I'm trying to use a contract made on solidity and deployed with brownie on my front end using React and typescript. also using the framework usedapp, as the documentation here says in order to interact with a contract function I should…
Cromewar
  • 155
  • 9
5
votes
6 answers

The term 'pipx' is not recognized as the name of a cmdlet

I have followed the instructions to install Brownie on Visual studio code of their website. python3 -m pip install --user pipx python3 -m pipx ensurepath The 2 lines above poses no problem. I restarted the terminal to input line: pipx install…
Zulami13
  • 65
  • 1
  • 4
4
votes
1 answer

What is a gas lane in chainlink and blockchain?

I do understand the concept of gas in the ethereum blockchain and why gas is needed to compensate miners for providing computing power to the network. However, when I was reading up on the chainlink vrf get a random number documentation it says that…
4
votes
2 answers

TransactionError when using Brownie on Optimism - Tx dropped without known replacement

I have a Python script using Brownie that occasionally triggers a swap on Uniswap by sending a transaction to Optimism Network. It worked well for a few days (did multiple transactions successfully), but now each time it triggers a transaction, I…
tseror
  • 41
  • 3
4
votes
1 answer

Brownie testing for reverted transactions does not work with pytest.raises() or brownie.reverts()

Issue description: Brownie tests containing either pytest.raises(exceptions.VirtualMachineError) or brownie.reverts() producing an error, when the request by design fails (is reverted). On…
4
votes
1 answer

When is tx.wait(1) required?

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…
Navraj Sharma
  • 43
  • 1
  • 1
  • 5
3
votes
0 answers

Brownie error instead of exception when a transaction gets reverted on development

I am following a brownie tutorial which wrote the following test def test_only_owner_can_withdraw(): fund_me = deploy() bad_actor = accounts.add() with pytest.raises(exceptions.VirtualMachineError): fund_me.withdraw({"from":…
gcodes
  • 33
  • 5
1
2 3
15 16