Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revertedWith matcher doesn't work with hardhat network w/ throwOnCallFailures = false #629

Open
moodysalem opened this issue Feb 26, 2022 · 0 comments

Comments

@moodysalem
Copy link

moodysalem commented Feb 26, 2022

If you set throwOnCallFailures to false with hardhat, the eth_call promise still rejects with the parsed error from ethers, but the matcher fails with the following error:

     AssertionError: Expected transaction to be reverted with SomeError(1), but other exception was thrown: Error: call revert exception (method="viewMethodThatReverts()", errorArgs=[1], errorName="SomeError", errorSignature="SomeError(uint8)", reason=null, code=CALL_EXCEPTION, version=abi/5.5.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant