Replies: 2 comments 4 replies
-
I'll need a bit more context
|
Beta Was this translation helpful? Give feedback.
3 replies
-
I think the issue may be related to this: ethereum/solidity#12725 ... but I'm not really sure. The behaviors just seem similar, in that error conditions may be thrown in unexpected ways relative to try/catch that may be in use to generate the trace?? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In one of my tests, running against a hardhat forked chain I do:
When A is one of the hardhat wallet addresses generated and printed out during
npx hardhat node ...
, it appears the call that is supposed to generate the revert() is certainly going out as STATICCALL. However, the try/catch does not catch the error and the test fails.If I instead create a destination address by deploying a do-nothing contract and use its address, the try/catch works.
Does this sound like a hardhat issue that should be reported there instead?
Beta Was this translation helpful? Give feedback.
All reactions