mirror of
https://github.com/status-im/nim-ethers.git
synced 2025-01-28 08:05:09 +00:00
e0ac15b3ba
Add the following helpers to help detect transaction reverts: 1. `reverts` 2. `revertsWith` 3. `doesNotRevert` 4. `doesNotRevertWith`
10 lines
188 B
Solidity
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);
|
|
}
|
|
}
|