We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16b28f4 commit abe8585Copy full SHA for abe8585
ethers/signer.nim
@@ -114,10 +114,10 @@ method populateTransaction*(signer: Signer,
114
if transaction.nonce.isNone and transaction.gasLimit.isNone:
115
# when both nonce and gasLimit are not populated, we must ensure getNonce is
116
# followed by an estimateGas so we can determine if there was an error. If
117
- # there is an error, the nonce must be deprecated to prevent nonce gaps and
+ # there is an error, the nonce must be decreased to prevent nonce gaps and
118
# stuck transactions
119
+ populated.nonce = some(await signer.getNonce())
120
try:
- populated.nonce = some(await signer.getNonce())
121
populated.gasLimit = some(await signer.estimateGas(populated))
122
except ProviderError, EstimateGasError:
123
let e = getCurrentException()
0 commit comments