2023-10-24 23:42:25 +00:00
|
|
|
import pkg/ethers
|
|
|
|
import ./hardhat
|
|
|
|
|
|
|
|
type
|
|
|
|
TestHelpers* = ref object of Contract
|
|
|
|
|
|
|
|
method doRevert*(
|
|
|
|
self: TestHelpers,
|
|
|
|
revertReason: string
|
2024-05-14 09:00:45 +00:00
|
|
|
): Confirmable {.base, contract.}
|
2023-10-24 23:42:25 +00:00
|
|
|
|
|
|
|
proc new*(_: type TestHelpers, signer: Signer): TestHelpers =
|
|
|
|
let deployment = readDeployment()
|
|
|
|
TestHelpers.new(!deployment.address(TestHelpers), signer)
|