Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for fetching failed transactions #131

Merged
merged 8 commits into from
Sep 30, 2024
Merged

Add support for fetching failed transactions #131

merged 8 commits into from
Sep 30, 2024

Conversation

thpani
Copy link
Collaborator

@thpani thpani commented Sep 27, 2024

Closes #61

Extract failed transaction (in addition to successful ones) in the fetcher.

The implementation itself is straight-forward – testing is a bit more complicated, because we need to reliably produce 2 transactions that fail concurrently and are not discarded by simulation upfront. We achieve this by submitting 2 tx from different accounts.

ℹ️ Probably easier to review commmit-by-commit.

@thpani thpani requested a review from konnov September 27, 2024 13:03
@thpani thpani changed the title Add support for extracting failed transactions Add support for fetching failed transactions Sep 27, 2024
Copy link
Contributor

@konnov konnov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nicely done! I thought it would require more code.

solarkraft/src/fetcher/callDecoder.ts Outdated Show resolved Hide resolved
solarkraft/test/integration/callDecoder.test.ts Outdated Show resolved Hide resolved
@thpani thpani merged commit b96c520 into main Sep 30, 2024
3 checks passed
@thpani thpani deleted the th/failed-tx branch September 30, 2024 10:37
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.

[Epic] M2: Handle failed transactions
2 participants