Skip to content

RPC Errors not shown #24

@gpersoon

Description

@gpersoon

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…

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions