-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
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
Labels
No labels