Skip to content

fix: retry wrapped transaction-not-found errors - #1335

Open
pengbanban wants to merge 1 commit into
rocket-pool:masterfrom
pengbanban:my_feature
Open

pengbanban wants to merge 1 commit into
rocket-pool:masterfrom
pengbanban:my_feature

Conversation

@pengbanban

Copy link
Copy Markdown

A client that wraps ethereum.NotFound causes WaitForTransactionWithContext to return immediately: the current code compares the full error text with "not found".

Use errors.Is to recognize the sentinel through wrapping. The regression returns a wrapped not-found error with a cancelled context and verifies that the wait follows its cancellation path instead of returning the wrapped lookup error.

go test ./bindings/utils -count=1 passes. No live-chain transaction was submitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant