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

If your node does support revert reasons, please let us know #201

Open
paoloswap opened this issue Apr 9, 2024 · 0 comments
Open

If your node does support revert reasons, please let us know #201

paoloswap opened this issue Apr 9, 2024 · 0 comments

Comments

@paoloswap
Copy link

Uusing expectRevert in my hardhat tests. It all was fine until upgrading to the latest version of hardhat, now I get:

@openzeppelin/test-helpers WARN expectRevert: Assertions may yield false negatives!

Revert reason checks are only known to work on Ganache >=2.2.0 and Hardhat, and the current node is HardhatNetwork/2.22.2/@nomicfoundation/edr/0.2.0-dev.

If your node does support revert reasons, please let us know: https://github.com/OpenZeppelin/openzeppelin-test-helpers/issues/new

In my package.json:

"@openzeppelin/test-helpers": "^0.5.16",
"hardhat": "^2.22.2",

With hardhat < 2.19 I think (if I recall correctly) it was all good.

Somehow the test-helpers don't recognize the latest version of hardhat and the hardhat node correctly...

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