diff --git a/.changeset/rotten-emus-work.md b/.changeset/rotten-emus-work.md new file mode 100644 index 00000000000..ecf5ee0b9f5 --- /dev/null +++ b/.changeset/rotten-emus-work.md @@ -0,0 +1,5 @@ +--- +"chainlink": patch +--- + +#internal fixed a bug where we weren't sending the value param to the txm diff --git a/core/services/relay/evm/chain_writer.go b/core/services/relay/evm/chain_writer.go index e36aad044aa..dd4c6f99e3e 100644 --- a/core/services/relay/evm/chain_writer.go +++ b/core/services/relay/evm/chain_writer.go @@ -111,6 +111,11 @@ func (w *chainWriter) SubmitTransaction(ctx context.Context, contract, method st checker.CheckerType = txmgrtypes.TransmitCheckerType(methodConfig.Checker) } + v := big.NewInt(0) + if value != nil { + v = value + } + req := evmtxmgr.TxRequest{ FromAddress: methodConfig.FromAddress, ToAddress: common.HexToAddress(toAddress), @@ -119,6 +124,7 @@ func (w *chainWriter) SubmitTransaction(ctx context.Context, contract, method st Meta: &txmgrtypes.TxMeta[common.Address, common.Hash]{WorkflowExecutionID: meta.WorkflowExecutionID}, Strategy: w.sendStrategy, Checker: checker, + Value: *v, } _, err = w.txm.CreateTransaction(ctx, req)