Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
fix(pkg): minor fixes for WaitReceipt (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Jun 13, 2023
1 parent ebf3162 commit feaa2b6
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 feaa2b6

Please sign in to comment.