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:
Eric 2024-11-02 02:49:06 +11:00 committed by GitHub
parent 80b2ead97c
commit 0ce6abf0fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 populated.nonce.isSome, "nonce not populated!"
return populated return populated
method cancelTransaction*( method cancelTransaction*(