mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-05 23:23: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:
|
if transaction.gasLimit.isNone:
|
||||||
populated.gasLimit = some(await signer.estimateGas(populated, BlockTag.pending))
|
populated.gasLimit = some(await signer.estimateGas(populated, BlockTag.pending))
|
||||||
|
|
||||||
|
doAssert transaction.nonce.isSome, "nonce not populated!"
|
||||||
|
|
||||||
return populated
|
return populated
|
||||||
|
|
||||||
method cancelTransaction*(
|
method cancelTransaction*(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user