mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-08 00:23:07 +00:00
fix(nonce): indentation mistake after last merge (#92)
* fix an indentation mistake after last merge * add assertion to ensure nonce is not populated * assert populated nonce is populated, not transaction
This commit is contained in:
parent
80b2ead97c
commit
0ce6abf0fe
@ -139,6 +139,8 @@ method populateTransaction*(
|
||||
if transaction.gasLimit.isNone:
|
||||
populated.gasLimit = some(await signer.estimateGas(populated, BlockTag.pending))
|
||||
|
||||
doAssert populated.nonce.isSome, "nonce not populated!"
|
||||
|
||||
return populated
|
||||
|
||||
method cancelTransaction*(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user