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

Parse different types of result on revert #285

Closed
s-medvedev opened this issue Nov 12, 2021 · 0 comments
Closed

Parse different types of result on revert #285

s-medvedev opened this issue Nov 12, 2021 · 0 comments

Comments

@s-medvedev
Copy link
Contributor

s-medvedev commented Nov 12, 2021

As investigated in #268, results from revert construction can be encoded in different ways.
We need to realize what ways can be returned and decode them properly.

The revert result can be returned through different solidity ways. In any case, the first 4 bytes contain a selector, which identifies the method used to encode the result. Some possible values:

We should analyze the selector before parsing the following data:
https://github.com/neonlabsorg/proxy-model.py/blob/5cb42d5e7f951338e787f669e96512499b081a89/proxy/plugin/solana_rest_api_tools.py#L363-L371

See also:

┆Issue is synchronized with this Jira Task by Unito

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

No branches or pull requests

2 participants