From 784e0ec7682cadb2e5c1f3f2c51b55907e0a9459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Mon, 6 Jun 2022 23:33:54 +0100 Subject: [PATCH] fix: ETH transaction count nonce --- lib/plugins/wallet/geth/base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/wallet/geth/base.js b/lib/plugins/wallet/geth/base.js index 1ef637e7..d37227a6 100644 --- a/lib/plugins/wallet/geth/base.js +++ b/lib/plugins/wallet/geth/base.js @@ -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