simplify deadline error

This commit is contained in:
aodhgan 2025-10-15 10:58:53 -07:00
parent b05fbc1868
commit e203026c4d

View file

@ -1702,11 +1702,6 @@ func (api *TransactionAPI) SendRawTransactionSync(ctx context.Context, input hex
hash: hash,
}
}
// Otherwise, bubble the caller's context error (canceled or deadline).
if err := ctx.Err(); err != nil {
return nil, err
}
// Fallback: return the derived context's error.
return nil, receiptCtx.Err()
case err, ok := <-subErrCh: