Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Nov 20, 2024
1 parent c908bbf commit 6baa4ae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/zetae2e/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func runE2ETest(cmd *cobra.Command, args []string) error {
conf.ZetaChainID,
)
if err != nil {
return nil
return err
}
runnerOpts = append(runnerOpts, runner.WithZetaTxServer(zetaTxServer))
}
Expand Down
5 changes: 4 additions & 1 deletion zetaclient/chains/evm/observer/inbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ func (ob *Observer) ProcessInboundTrackers(ctx context.Context) error {

// if the transaction is sent to the gateway, this is a v2 inbound
gatewayAddr, gateway, err := ob.GetGatewayContract()

Check warning on line 149 in zetaclient/chains/evm/observer/inbound.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/chains/evm/observer/inbound.go#L148-L149

Added lines #L148 - L149 were not covered by tests
if err == nil && ethcommon.HexToAddress(tx.To) == gatewayAddr {
if err != nil {
ob.Logger().Inbound.Debug().Err(err).Msg("error getting gateway contract for processing inbound tracker")
}
if err == nil && tx != nil && ethcommon.HexToAddress(tx.To) == gatewayAddr {
if err := ob.ProcessInboundTrackerV2(ctx, gateway, tx, receipt); err != nil {
return err
}
Expand Down
File renamed without changes.

0 comments on commit 6baa4ae

Please sign in to comment.