Skip to content

Commit

Permalink
chore: Dedupe transaction hashes on resend (#802)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcoraven authored Dec 10, 2024
1 parent 88b988c commit 07c1493
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/worker/tasks/sendTransactionWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,10 @@ const _resendTransaction = async (
resendCount,
sentAt: new Date(),
sentAtBlock: await getBlockNumberish(chainId),
sentTransactionHashes: [...sentTransactionHashes, transactionHash],
// Dedupe transaction hashes.
sentTransactionHashes: [
...new Set([...sentTransactionHashes, transactionHash]),
],
gas: populatedTransaction.gas,
gasPrice: populatedTransaction.gasPrice,
maxFeePerGas: populatedTransaction.maxFeePerGas,
Expand Down

0 comments on commit 07c1493

Please sign in to comment.