Skip to content

Commit 6eb3acf

Browse files
Merge pull request #5601 from BitGo/WIN-4290
fix: update getAddressNonce logic in coredao
2 parents 620c11e + a1138da commit 6eb3acf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/sdk-coin-coredao/src/coredao.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class Coredao extends AbstractEthLikeNewCoins {
6363
if (!result || !Array.isArray(result.result)) {
6464
throw new Error('Unable to find next nonce from the explorer, got: ' + JSON.stringify(result));
6565
}
66-
const backupKeyTxList = result.result;
66+
const backupKeyTxList = result.result.filter((tx) => tx.from === address);
6767
if (backupKeyTxList.length > 0) {
6868
// Calculate last nonce used
6969
nonce = Math.max(...backupKeyTxList.filter((tx) => tx.from === address).map((tx) => tx.nonce as number)) + 1;

0 commit comments

Comments
 (0)