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

Commit

Permalink
Merge branch 'main' into retry-flags
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerLamTd authored Jun 13, 2023
2 parents c11c79a + feaa2b6 commit 74bd338
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 74bd338

Please sign in to comment.