Closed 0x0077 closed 1 year ago
We are facing the exact same issue.
We upgraded
ape from 0.6.7
to 0.6.13
ape-hardhat from 0.6.1
to 0.6.10
Higher up in the stack trace it shows
exception = ValidationError(model='Receipt', errors=[{'loc': ('gas_price',), 'msg': 'value is not a valid integer', 'type': 'type_error.integer'}])
My guess is theres a change in the data format somewhere and the hardhat plugin hasnt been updated yet.
PS: we were using hardhat version 2.12.2, upgrading to 2.17.0 did not make any difference.
And I also encounter problems when I use the foundry
. I'm confident that my configuration is correct.
$ ape console --network ethereum:mainnet-fork:foundry
INFO: Starting 'anvil' process.
ERROR: (FoundryNotInstalledError) Missing local Foundry node client. See ape-foundry README for install steps.
After I downgraded the APE version to 0.6.11, it started working.
Still an issue, regression somewhere in recent history
Any news on this? Blocking us from moving forward with Ape. Hoping to start a new Vyper project next week and would prefer to base it on Ape.
Any news on this? Blocking us from moving forward with Ape. Hoping to start a new Vyper project next week and would prefer to base it on Ape.
@scherrey I believe #1542 resolves this (released in 0.6.14), can you try it and get back to us if it is still an issue?
fixed by #1542
Environment information
ape
and plugin versions:ape-config.yaml
(NOTE: do not post anything private like RPC urls or secrets!):What went wrong?
Please include information like:
what command you ran
the code that caused the failure (see this link for help with formatting code)
@pytest.fixture def owner(accounts): return accounts[0]
@pytest.fixture def token(project, owner): return owner.deploy(project.ERC20)
def test_token(token, onwer): assert token.balanceOf(owner) == 0
E pydantic.error_wrappers.ValidationError: 1 validation error for Receipt E gas_price E value is not a valid integer (type=type_error.integer) owner = <TestAccount 0x1e59ce931B4CFea3fe4B875411e280e173cB7A9C> project = <ape.managers.project.manager.ProjectManager object at 0x130e78610> ======================================================================================= short test summary info ======================================================================================= ERROR tests/base/test_token.py::test_token - pydantic.error_wrappers.ValidationError: 1 validation error for Receipt