mirror of
https://github.com/status-im/nim-ethers.git
synced 2025-01-12 16:44:23 +00:00
ab10354910
This is a breaking change for the API of nim-ethers.
15 lines
337 B
Nim
15 lines
337 B
Nim
import pkg/ethers
|
|
import ./hardhat
|
|
|
|
type
|
|
TestHelpers* = ref object of Contract
|
|
|
|
method doRevert*(
|
|
self: TestHelpers,
|
|
revertReason: string
|
|
): Confirmable {.base, contract.}
|
|
|
|
proc new*(_: type TestHelpers, signer: Signer): TestHelpers =
|
|
let deployment = readDeployment()
|
|
TestHelpers.new(!deployment.address(TestHelpers), signer)
|