Logo
Explore Help
Sign In
logos-storage/nim-ethers
1
0
Fork 0
You've already forked nim-ethers
mirror of https://github.com/logos-storage/nim-ethers.git synced 2026-01-12 10:33:07 +00:00
Code Issues Packages Projects Releases Wiki Activity
nim-ethers/testmodule/helpers.nim

15 lines
346 B
Nim
Raw Normal View History

PR feedback: remove auto-cancellation of failed transactions - remove auto-cancellation of failed transaction (failed during estimate gas) to prevent stuck txs - replace it with an 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
2023-10-20 17:14:12 +11:00
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)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.0 Page: 34ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API