From 9b46ff71d3185cf38e05d72fa69b67a9119a909f Mon Sep 17 00:00:00 2001 From: Dmitry Date: Thu, 4 Jul 2024 12:47:20 +0200 Subject: [PATCH] Add ctx to evm observer & signer --- zetaclient/chains/evm/signer/outbound_data.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zetaclient/chains/evm/signer/outbound_data.go b/zetaclient/chains/evm/signer/outbound_data.go index 070c73597e..01c2df8490 100644 --- a/zetaclient/chains/evm/signer/outbound_data.go +++ b/zetaclient/chains/evm/signer/outbound_data.go @@ -111,6 +111,7 @@ func (txData *OutboundData) SetupGas( // cctx will be skipped and false otherwise. // 3. error func NewOutboundData( + ctx context.Context, cctx *types.CrossChainTx, evmObserver *observer.Observer, evmRPC interfaces.EVMRPCClient, @@ -139,7 +140,7 @@ func NewOutboundData( // Get nonce, Early return if the cctx is already processed nonce := cctx.GetCurrentOutboundParam().TssNonce - included, confirmed, err := evmObserver.IsOutboundProcessed(cctx, logger) + included, confirmed, err := evmObserver.IsOutboundProcessed(ctx, cctx, logger) if err != nil { return nil, true, errors.New("IsOutboundProcessed failed") }