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

eth: explicit rpc error return #383

Merged
merged 2 commits into from
Jun 6, 2024
Merged

eth: explicit rpc error return #383

merged 2 commits into from
Jun 6, 2024

Conversation

barraguda
Copy link
Contributor

Problem

If I send a signed transaction that will fail on the rpc level, for example with too low a gas level, the eth runtime currently does a few things:

receives error, assumes something is wrong with the provider, returns a NoRpcFound error, restart subscriptions.

Solution

If ErrResponse from provider, to_string() it and return it to the user so they know what went wrong.

Notes

corresponding process_lib update: hyperware-ai/process_lib#80

@barraguda barraguda marked this pull request as ready for review June 6, 2024 05:28
Copy link
Member

@dr-frmr dr-frmr left a comment

Choose a reason for hiding this comment

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

Perfect

@barraguda barraguda merged commit 3de3b9b into develop Jun 6, 2024
1 check passed
@barraguda barraguda deleted the bp/etherrorfix branch June 6, 2024 19:42
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.

2 participants