diff --git a/pkg/rpc/utils.go b/pkg/rpc/utils.go index 090342e1d..cc08738bf 100644 --- a/pkg/rpc/utils.go +++ b/pkg/rpc/utils.go @@ -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 }