Skip to content

Commit

Permalink
chore(e2e/solve): add chain to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
corverroos committed Jan 31, 2025
1 parent 37de3bb commit 4b15e27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions e2e/solve/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ func deployBoxes(ctx context.Context, network netconf.Network, backends ethbacke

addr, _, err := inbox.DeployIfNeeded(ctx, network.ID, backend)
if err != nil {
return errors.Wrap(err, "deploy solve inbox")
return errors.Wrap(err, "deploy solve inbox", "chain", chain.Name)
}

log.Debug(ctx, "SolverNetInbox deployed", "addr", addr.Hex(), "chain", chain.Name)

addr, _, err = outbox.DeployIfNeeded(ctx, network.ID, backend)
if err != nil {
return errors.Wrap(err, "deploy solve outbox")
return errors.Wrap(err, "deploy solve outbox", "chain", chain.Name)
}

log.Debug(ctx, "SolverNetOutbox deployed", "addr", addr.Hex(), "chain", chain.Name)
Expand Down
2 changes: 1 addition & 1 deletion lib/ethclient/ethbackend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (b *Backend) WaitMined(ctx context.Context, tx *ethtypes.Transaction) (*eth
if err != nil {
return nil, errors.Wrap(err, "wait mined", "chain", b.chainName)
} else if rec.Status != ethtypes.ReceiptStatusSuccessful {
return rec, errors.New("receipt status unsuccessful", "status", rec.Status, "tx", tx.Hash())
return rec, errors.New("receipt status unsuccessful", "status", rec.Status, "tx", tx.Hash(), "chain", b.chainName)
}

return rec, nil
Expand Down

0 comments on commit 4b15e27

Please sign in to comment.