{"action":"created","issue":{"url":"https://api.github.com/repos/trufflesuite/truffle/issues/976","repository_url":"https://api.github.com/repos/trufflesuite/truffle","labels_url":"https://api.github.com/repos/trufflesuite/truffle/issues/976/labels{/name}","comments_url":"https://api.github.com/repos/trufflesuite/truffle/issues/976/comments","events_url":"https://api.github.com/repos/trufflesuite/truffle/issues/976/events","html_url":"https://github.com/trufflesuite/truffle/issues/976","id":328091770,"node_id":"MDU6SXNzdWUzMjgwOTE3NzA=","number":976,"title":"Display revert reasoning string in exception.","user":{"login":"kyriediculous","id":22256858,"node_id":"MDQ6VXNlcjIyMjU2ODU4","avatar_url":"https://avatars2.githubusercontent.com/u/22256858?v=4","gravatar_id":"","url":"https://api.github.com/users/kyriediculous","html_url":"https://github.com/kyriediculous","followers_url":"https://api.github.com/users/kyriediculous/followers","following_url":"https://api.github.com/users/kyriediculous/following{/other_user}","gists_url":"https://api.github.com/users/kyriediculous/gists{/gist_id}","starred_url":"https://api.github.com/users/kyriediculous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyriediculous/subscriptions","organizations_url":"https://api.github.com/users/kyriediculous/orgs","repos_url":"https://api.github.com/users/kyriediculous/repos","events_url":"https://api.github.com/users/kyriediculous/events{/privacy}","received_events_url":"https://api.github.com/users/kyriediculous/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-31T10:55:58Z","updated_at":"2018-06-17T09:32:24Z","closed_at":null,"author_association":"NONE","body":"- [ ] I've asked for help in the [Truffle Gitter](http://gitter.im/Consensys/truffle) before filing this issue.\r\n\r\n---------------------------\r\n\r\n## Issue\r\n\r\nIt seems that, in contrast to Remix, truffle does not yet display the reasoning strings that can be added to Revert/Require since solidity 0.4.22 \r\n\r\n## Steps to Reproduce\r\n\r\nMake a function that reverts with a message and call it from a unit test, console.error() the exception.\r\n\r\n```\r\ncontract Test {\r\nfunction test() {\r\n  revert(\"I reverted\")\r\n}\r\n}\r\n```\r\n\r\n## Expected Behavior\r\n```\r\n\r\nVM error: revert. The transaction has been reverted to the initial state.\r\n**Reason provided by the contract: \"I reverted\".**\r\nDebug the transaction to get more information. \r\n```\r\n\r\n## Actual Results\r\n`Error: VM Exception while processing transaction: revert`\r\n\r\n## Environment\r\n\r\n* Operating System: Win10 Pro\r\n* Ethereum client: Ganache\r\n* Truffle version (`truffle version`): Truffle v4.1.8 (core: 4.1.9)\r\n* Solidity version: v0.4.24 (solc-js)\r\n* node version (`node --version`): 8.11.2\r\n* npm version (`npm --version`): 5.6.0\r\n"},"comment":{"url":"https://api.github.com/repos/trufflesuite/truffle/issues/comments/397866513","html_url":"https://github.com/trufflesuite/truffle/issues/976#issuecomment-397866513","issue_url":"https://api.github.com/repos/trufflesuite/truffle/issues/976","id":397866513,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Nzg2NjUxMw==","user":{"login":"kronosapiens","id":1874062,"node_id":"MDQ6VXNlcjE4NzQwNjI=","avatar_url":"https://avatars1.githubusercontent.com/u/1874062?v=4","gravatar_id":"","url":"https://api.github.com/users/kronosapiens","html_url":"https://github.com/kronosapiens","followers_url":"https://api.github.com/users/kronosapiens/followers","following_url":"https://api.github.com/users/kronosapiens/following{/other_user}","gists_url":"https://api.github.com/users/kronosapiens/gists{/gist_id}","starred_url":"https://api.github.com/users/kronosapiens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kronosapiens/subscriptions","organizations_url":"https://api.github.com/users/kronosapiens/orgs","repos_url":"https://api.github.com/users/kronosapiens/repos","events_url":"https://api.github.com/users/kronosapiens/events{/privacy}","received_events_url":"https://api.github.com/users/kronosapiens/received_events","type":"User","site_admin":false},"created_at":"2018-06-17T09:32:24Z","updated_at":"2018-06-17T09:32:24Z","author_association":"NONE","body":"Hi! Also interested in this issue. Will the new version of Ganache also pass along `require` failure messages?"}}
{"actor":{"display_login":"kronosapiens"}}