mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-02 21:53:08 +00:00
add assertion to ensure nonce is not populated
This commit is contained in:
parent
14f9f47132
commit
f87bf37c10
@ -139,6 +139,8 @@ method populateTransaction*(
|
||||
if transaction.gasLimit.isNone:
|
||||
populated.gasLimit = some(await signer.estimateGas(populated, BlockTag.pending))
|
||||
|
||||
doAssert transaction.nonce.isSome, "nonce not populated!"
|
||||
|
||||
return populated
|
||||
|
||||
method cancelTransaction*(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user