Skip to content

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

@paoloswap

Description

@paoloswap

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions