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

Appropriate delegation of revert reason #1560

Open
fedejinich opened this issue Jun 14, 2021 · 0 comments
Open

Appropriate delegation of revert reason #1560

fedejinich opened this issue Jun 14, 2021 · 0 comments

Comments

@fedejinich
Copy link
Contributor

Actually EthModule has the responsability to decode a revert reason, but

  • it has nothing to do with it
  • It's a stateless method which depends mostly on the program result.

Therefore, I propose to delegate properly and decode the revert reason directly at ProgramResult.

public static Optional<String> decodeRevertReason(ProgramResult res) {

@fedejinich fedejinich changed the title Appropriate delegation for revert reason Appropriate delegation of revert reason Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant