You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm testing out swapping ganache-cli for hardhat@dtt on the argobytes repo.
One of my tests expects a revert, but it is not being caught.
with brownie.reverts(""):
> argobytes_proxy_clone.execute(action, {"from": accounts[1]})
E ValueError: Transaction reverted without a reason
tests/test_argobytes_clone.py:26: ValueError
How can it be fixed?
My guess is that ganache errors were not ValueErrors like hardhat's are. Either change hardhat errors to match ganache, or update the context manager to catch ValueErrors.
The text was updated successfully, but these errors were encountered:
Environment information
brownie
Version: 48d3f18hardhat
Version: 2.1.3-dtt.0 sha512-QWI3LbImf5vyshQzC2nGxzkgtMHsK5BovcWUMgNl3f/0QGCtVRLhTvkA6/FK0f8XhDkFCOHLsJmyRrt4Ao9grg==solc
Version: 0.8.3What was wrong?
I'm testing out swapping ganache-cli for hardhat@dtt on the argobytes repo.
One of my tests expects a revert, but it is not being caught.
How can it be fixed?
My guess is that ganache errors were not ValueErrors like hardhat's are. Either change hardhat errors to match ganache, or update the context manager to catch ValueErrors.
The text was updated successfully, but these errors were encountered: