Merge pull request #1252 from chaotixkilla/fix-eth-nonce-8.0-beta.6

Fix ETH transaction nonce
This commit is contained in:
Rafael Taranto 2022-06-07 00:36:01 +01:00 committed by GitHub
commit c94d767f0b

View file

@ -125,7 +125,7 @@ function generateTx (_toAddress, wallet, amount, includesFee, cryptoCode) {
.then(([gas, gasPrice, txCount]) => [
BN(gas),
BN(gasPrice),
_.max([1, txCount, lastUsedNonces[fromAddress] + 1])
_.max([0, txCount, lastUsedNonces[fromAddress] + 1])
])
.then(([gas, gasPrice, txCount]) => {
lastUsedNonces[fromAddress] = txCount