Skip to content

Commit

Permalink
adding logging
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMarstonConnell committed Sep 16, 2024
1 parent 5af826a commit 7f5b3e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions relay/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,14 @@ func waitForReceipt(client *ethclient.Client, txHash common.Hash, chainId, final

receipt, err := client.TransactionReceipt(context.Background(), txHash)
if err != nil {
log.Printf("cannot get receipt from network | %s", err.Error())
errCount++
continue
}

latestBlock, err := client.BlockByNumber(context.Background(), nil)
if err != nil {
log.Printf("cannot get current height | %s", err.Error())
errCount++
continue
}
Expand Down

0 comments on commit 7f5b3e1

Please sign in to comment.