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

RPC Errors not shown #24

Open
gpersoon opened this issue Sep 19, 2019 · 0 comments
Open

RPC Errors not shown #24

gpersoon opened this issue Sep 19, 2019 · 0 comments

Comments

@gpersoon
Copy link
Contributor

While testing some code with a require, i noticed RPC Errors are not shown to the user. They are only visible in the development console. Example code:

pragma solidity ^0.5.0;
contract TestRequire {  
      function Test() external view returns(uint) {
         require (1 > 2);
         return 7;
      }
}

Resulting error in the console when trying to execute the function TestRequire:

inpage.js:1 MetaMask - RPC Error: Internal JSON-RPC error. {code: -32603, message: "Internal JSON-RPC error.", data: {}, stack: "Error: "message" must be a nonempty string.↵    at…
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