add assertion to ensure nonce is not populated

This commit is contained in:
Eric 2024-11-01 12:11:55 +11:00
parent 14f9f47132
commit f87bf37c10
No known key found for this signature in database

View File

@ -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*(