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

Revert on Json RPC error #91

Merged
merged 2 commits into from
Jul 1, 2024
Merged

Revert on Json RPC error #91

merged 2 commits into from
Jul 1, 2024

Conversation

pistomat
Copy link
Contributor

There is currently no way to get the error from a JSON RPC call if it fails, which is very annoying for both debugging and contract logic.

This is but a suggestion on how to handle it, alternatives that come up to my mind are:

  1. This solution
  2. Returning the whole JSON response, not just the result item.
  3. Adding a bool success to the return values, returning False and the error as string instead of reverting.

@pistomat
Copy link
Contributor Author

pistomat commented Jul 1, 2024

@ferranbt I synced with main, so maybe the CI passes now? I have no idea why there was a segfault

@ferranbt ferranbt merged commit 17db5e0 into flashbots:main Jul 1, 2024
4 checks passed
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