diff --git a/accounts/abi/bind/v2/util.go b/accounts/abi/bind/v2/util.go index 438848a753..384e45c000 100644 --- a/accounts/abi/bind/v2/util.go +++ b/accounts/abi/bind/v2/util.go @@ -43,7 +43,11 @@ func WaitMined(ctx context.Context, b DeployBackend, txHash common.Hash) (*types if errors.Is(err, ethereum.NotFound) { logger.Trace("Transaction not yet mined") } else { - logger.Trace("Receipt retrieval failed", "err", err) + logger.Warn("Receipt retrieval failed", "err", err) + // For context cancellation, return immediately + if errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded) { + return nil, err + } } // Wait for the next round.