Merge pull request #1252 from chaotixkilla/fix-eth-nonce-8.0-beta.6
Fix ETH transaction nonce
This commit is contained in:
commit
c94d767f0b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue