Skip to content

Commit

Permalink
wait mined
Browse files Browse the repository at this point in the history
  • Loading branch information
lalexgap committed Oct 10, 2023
1 parent 26e4518 commit 271bace
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/chain/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,8 @@ func transferEth(client *ethclient.Client, txSubmitter *bind.TransactOpts, to ty
if err != nil {
log.Fatal(err)
}
_, err = bind.WaitMined(context.Background(), client, signedTx)
if err != nil {
log.Fatal(err)
}
}

0 comments on commit 271bace

Please sign in to comment.