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

Support revert error message on contract. #54

Open
cmditch opened this issue Jun 8, 2018 · 0 comments
Open

Support revert error message on contract. #54

cmditch opened this issue Jun 8, 2018 · 0 comments

Comments

@cmditch
Copy link
Owner

cmditch commented Jun 8, 2018

contract Reverter {
    function wassup() {
        require(false, "some message");
    }
}

Calling this function will return

0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000d796f7527726520612066636b7200000000000000000000000000000000000000

One must pattern match 0x08c379a0 on each call response, and decode accordingly.

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

1 participant