nim-ethers/testnode/contracts/TestHelpers.sol
Eric Mastro e0ac15b3ba add revert helpers for testing
Add the following helpers to help detect transaction reverts:
1. `reverts`
2. `revertsWith`
3. `doesNotRevert`
4. `doesNotRevertWith`
2022-09-20 13:15:15 +10:00

10 lines
188 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract TestHelpers {
function revertsWith(string calldata revertReason) public pure {
require(false, revertReason);
}
}