mirror of
https://github.com/status-im/nim-ethers.git
synced 2025-01-27 15:45:49 +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
15 lines
346 B
Nim
15 lines
346 B
Nim
import pkg/ethers
|
|
import ./hardhat
|
|
|
|
type
|
|
TestHelpers* = ref object of Contract
|
|
|
|
method doRevert*(
|
|
self: TestHelpers,
|
|
revertReason: string
|
|
): ?TransactionResponse {.base, contract.}
|
|
|
|
proc new*(_: type TestHelpers, signer: Signer): TestHelpers =
|
|
let deployment = readDeployment()
|
|
TestHelpers.new(!deployment.address(TestHelpers), signer)
|