Skip to content

Commit

Permalink
fix(pkg): minor fixes for WaitReceipt (taikoxyz#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Jun 14, 2023
1 parent 1892891 commit 987ad6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/rpc/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ func WaitReceipt(ctx context.Context, client *ethclient.Client, tx *types.Transa
for {
select {
case <-ctxWithTimeout.Done():
return nil, ctx.Err()
return nil, ctxWithTimeout.Err()
case <-ticker.C:
receipt, err := client.TransactionReceipt(ctx, tx.Hash())
receipt, err := client.TransactionReceipt(ctxWithTimeout, tx.Hash())
if err != nil {
continue
}
Expand Down

0 comments on commit 987ad6e

Please sign in to comment.