Commit f6256997 authored by Adrian Sutton's avatar Adrian Sutton

op-e2e: Add context to errors retrieving receipts.

parent b2657869
...@@ -35,7 +35,7 @@ func ForReceipt(ctx context.Context, client *ethclient.Client, hash common.Hash, ...@@ -35,7 +35,7 @@ func ForReceipt(ctx context.Context, client *ethclient.Client, hash common.Hash,
} }
} }
if err != nil { if err != nil {
return nil, err return nil, fmt.Errorf("failed to get receipt: %w", err)
} }
if receipt.Status != status { if receipt.Status != status {
return receipt, addDebugTrace(ctx, client, hash, fmt.Errorf("expected status %d, but got %d", status, receipt.Status)) return receipt, addDebugTrace(ctx, client, hash, fmt.Errorf("expected status %d, but got %d", status, receipt.Status))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment