Skip to content

Commit

Permalink
PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Oct 17, 2024
1 parent dfe9a5d commit f003f72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions zetaclient/chains/evm/signer/v2_sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ func (signer *Signer) signGatewayExecute(

var data []byte

// only set sender if it's authenticated call
// if sender is provided in messageContext call is authenticated and target is Callable.onCall
// otherwise, call is arbitrary
messageContext := gatewayevm.MessageContext{
Sender: common.HexToAddress(sender),
}
Expand Down Expand Up @@ -154,7 +155,8 @@ func (signer *Signer) signERC20CustodyWithdrawAndCall(
return nil, errors.Wrap(err, "unable to get ERC20CustodyMetaData ABI")
}

// only set sender if it's authenticated call
// if sender is provided in messageContext call is authenticated and target is Callable.onCall
// otherwise, call is arbitrary
messageContext := gatewayevm.MessageContext{
Sender: common.HexToAddress(sender),
}
Expand Down

0 comments on commit f003f72

Please sign in to comment.