Skip to content

Commit

Permalink
Add ctx to evm observer & signer
Browse files Browse the repository at this point in the history
  • Loading branch information
swift1337 committed Jul 4, 2024
1 parent d4e7db3 commit 9b46ff7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zetaclient/chains/evm/signer/outbound_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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")
}
Expand Down

0 comments on commit 9b46ff7

Please sign in to comment.