Skip to content

Commit

Permalink
PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Oct 18, 2024
1 parent cba4393 commit 57bfc5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zetaclient/chains/evm/signer/outbound_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type OutboundData struct {
revertOptions types.RevertOptions

// callOptions field determinenes if call is arbitrary or authenticated and contains gasLimit
callOptions *types.CallOptions
callOptions types.CallOptions
}

// NewOutboundData creates OutboundData from the given CCTX.
Expand Down Expand Up @@ -147,12 +147,12 @@ func NewOutboundData(

revertOptions: cctx.RevertOptions,

callOptions: callOptions,
callOptions: *callOptions,
}, false, nil
}

func (o OutboundData) MessageContext() (gatewayevm.MessageContext, error) {
if o.callOptions == nil {
if o.callOptions == (types.CallOptions{}) {
return gatewayevm.MessageContext{}, errors.New("call options not found")
}
// if sender is provided in messageContext call is authenticated and target is Callable.onCall
Expand Down

0 comments on commit 57bfc5f

Please sign in to comment.