Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Oct 18, 2024
1 parent 57bfc5f commit a2aecd0
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 @@ -73,14 +73,14 @@ func NewOutboundData(
var (
to ethcommon.Address
toChainID *big.Int
callOptions *types.CallOptions
callOptions types.CallOptions
)

// in protocol contract v2, receiver is always set in the outbound
if cctx.ProtocolContractVersion == types.ProtocolContractVersion_V2 {
to = ethcommon.HexToAddress(cctx.GetCurrentOutboundParam().Receiver)
toChainID = big.NewInt(cctx.GetCurrentOutboundParam().ReceiverChainId)
callOptions = cctx.GetCurrentOutboundParam().CallOptions
callOptions = *cctx.GetCurrentOutboundParam().CallOptions

Check warning on line 83 in zetaclient/chains/evm/signer/outbound_data.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/chains/evm/signer/outbound_data.go#L83

Added line #L83 was not covered by tests
} else {
// recipient + destination chain
var skip bool
Expand Down Expand Up @@ -147,7 +147,7 @@ func NewOutboundData(

revertOptions: cctx.RevertOptions,

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

Expand Down

0 comments on commit a2aecd0

Please sign in to comment.