-
Notifications
You must be signed in to change notification settings - Fork 589
Open
Description
Environment information
brownieVersion: 1.20.2anvilVersion: 0.2.0 commit 43b4e23solcVersion: 0.8.24- Python Version: 3.12.1
- OS: osx
What was wrong?
Brownie v1.20.2 works great! Thank you. But I have the following issue with it:
When I use Anvil, features such as "tx.return_value" or "tx.call_trace" do not work. They return none type. It works great with Hardhat. But Anvil is faster and it would be great if we can access "return_value" with Anvil as well.
Please include information like:
I first run anvil with the following command in terminal:
anvil --hardfork cancun
I then open another terminal and run brownie:
brownie console --network anvil
I then run the following script:
from brownie.network.gas.strategies import LinearScalingStrategy
from brownie.network import gas_price
gas_strategy = LinearScalingStrategy("60 gwei", "70 gwei", 1.1)
gas_price(gas_strategy)
token = ERC20FixedSupply.deploy("ERC20_0", "ERC20_0", 1, accounts[0], {'from': accounts[0]})
tx = token.transfer(accounts[1], 1, {'from': accounts[0]})
I am supposed to get a bool as return value, but the following command returns nothing:
tx.return_value
Metadata
Metadata
Assignees
Labels
No labels