From 51225f83f30a87606c3c7af56618cd16393c345e Mon Sep 17 00:00:00 2001 From: Nick Corin Date: Fri, 12 Jul 2024 14:40:55 +0200 Subject: [PATCH] [BCI-3813] Use the `transactionID` as the idempotency key in the EVM chain writer (#13829) * evm: Use the transactionId as the idempotency key in the chainwriter * changeset: Add changeset tag --------- Co-authored-by: Silas Lenihan <32529249+silaslenihan@users.noreply.github.com> --- .changeset/tall-emus-fail.md | 5 +++++ core/services/relay/evm/chain_writer.go | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/tall-emus-fail.md diff --git a/.changeset/tall-emus-fail.md b/.changeset/tall-emus-fail.md new file mode 100644 index 00000000000..98d5775cb14 --- /dev/null +++ b/.changeset/tall-emus-fail.md @@ -0,0 +1,5 @@ +--- +"chainlink": patch +--- + +#internal Use txid as the idempotency key in the evm chainwriter diff --git a/core/services/relay/evm/chain_writer.go b/core/services/relay/evm/chain_writer.go index dad68f1bfdc..f188ffeced2 100644 --- a/core/services/relay/evm/chain_writer.go +++ b/core/services/relay/evm/chain_writer.go @@ -128,6 +128,7 @@ func (w *chainWriter) SubmitTransaction(ctx context.Context, contract, method st EncodedPayload: calldata, FeeLimit: methodConfig.GasLimit, Meta: txMeta, + IdempotencyKey: &transactionID, Strategy: w.sendStrategy, Checker: checker, Value: *v,