mirror of
https://github.com/status-im/nim-ethers.git
synced 2025-01-13 00:54:38 +00:00
7eac8410af
- async lock during nonce sequencing + gas estimation - simplified cancelTransaction (still exported) such that the new transaction is populated using populateTransaction, so that all gas and fees are reset - moved reverting contract function into its own testing helpers module, and refactored any tests to use it - updated the test helper reverts to check EstimateGasErrors - combine ensureNonceSequence into populateTransaction
11 lines
214 B
Solidity
11 lines
214 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.8.0;
|
|
|
|
contract TestHelpers {
|
|
|
|
function doRevert(string calldata reason) public pure {
|
|
// Revert every tx with given reason
|
|
require(false, reason);
|
|
}
|
|
}
|