Skip to content

Commit 07c1493

Browse files
authored
chore: Dedupe transaction hashes on resend (#802)
1 parent 88b988c commit 07c1493

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/worker/tasks/sendTransactionWorker.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,10 @@ const _resendTransaction = async (
472472
resendCount,
473473
sentAt: new Date(),
474474
sentAtBlock: await getBlockNumberish(chainId),
475-
sentTransactionHashes: [...sentTransactionHashes, transactionHash],
475+
// Dedupe transaction hashes.
476+
sentTransactionHashes: [
477+
...new Set([...sentTransactionHashes, transactionHash]),
478+
],
476479
gas: populatedTransaction.gas,
477480
gasPrice: populatedTransaction.gasPrice,
478481
maxFeePerGas: populatedTransaction.maxFeePerGas,

0 commit comments

Comments
 (0)