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

fix(pkg): minor fixes for WaitReceipt #284

Merged
merged 1 commit into from
Jun 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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