openzeppelin-test-helpers icon indicating copy to clipboard operation
openzeppelin-test-helpers copied to clipboard

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

Open paoloswap opened this issue 2 years ago • 0 comments

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...

paoloswap avatar Apr 09 '24 12:04 paoloswap