{"action":"created","issue":{"url":"https://api.github.com/repos/trufflesuite/truffle/issues/830","repository_url":"https://api.github.com/repos/trufflesuite/truffle","labels_url":"https://api.github.com/repos/trufflesuite/truffle/issues/830/labels{/name}","comments_url":"https://api.github.com/repos/trufflesuite/truffle/issues/830/comments","events_url":"https://api.github.com/repos/trufflesuite/truffle/issues/830/events","html_url":"https://github.com/trufflesuite/truffle/issues/830","id":301833154,"number":830,"title":"Error encountered, bailing. Network state unknown. Review successful transactions manually.","user":{"login":"microdesign","id":3175952,"avatar_url":"https://avatars1.githubusercontent.com/u/3175952?v=4","gravatar_id":"","url":"https://api.github.com/users/microdesign","html_url":"https://github.com/microdesign","followers_url":"https://api.github.com/users/microdesign/followers","following_url":"https://api.github.com/users/microdesign/following{/other_user}","gists_url":"https://api.github.com/users/microdesign/gists{/gist_id}","starred_url":"https://api.github.com/users/microdesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/microdesign/subscriptions","organizations_url":"https://api.github.com/users/microdesign/orgs","repos_url":"https://api.github.com/users/microdesign/repos","events_url":"https://api.github.com/users/microdesign/events{/privacy}","received_events_url":"https://api.github.com/users/microdesign/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-02T16:53:17Z","updated_at":"2018-03-02T17:46:37Z","closed_at":"2018-03-02T17:46:37Z","author_association":"NONE","body":"\r\n\r\n---------------------------\r\n\r\n## Issue\r\n\r\nWhat the issue is, in broad strokes.\r\n\r\n## Steps to Reproduce\r\n\r\nPlease provide the shortest amount of steps to reproduce your issue.\r\n\r\n## Migrate my contracts\r\n\r\nI got error in Ganache, truffle develop and tesrpc when I try to migrate my contracts \r\n\r\n## Actual Results\r\n\r\n`Running migration: 2_HashnodeCrowdsale.js\r\n  Deploying HashnodeCrowdsale...\r\n  ... 0x83204ac86474f0efd8b8c4d53eaab84db1d7d7753d9368c9b44c59b3c3344b42\r\nError encountered, bailing. Network state unknown. Review successful transactions manually.\r\nError: VM Exception while processing transaction: revert\r\n    at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1)\r\n    at /usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:86:1\r\n    at /usr/local/lib/node_modules/truffle/build/webpack:/~/truffle-migrate/index.js:225:1\r\n    at /usr/local/lib/node_modules/truffle/build/webpack:/~/truffle-provider/wrapper.js:134:1\r\n    at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/httpprovider.js:128:1)\r\n    at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)\r\n    at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)\r\n    at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)\r\n    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:469:1)\r\n    at emitNone (events.js:110:20)\r\n    at IncomingMessage.emit (events.js:207:7)\r\n    at endReadableNT (_stream_readable.js:1059:12)\r\n    at _combinedTickCallback (internal/process/next_tick.js:138:11)\r\n    at process._tickDomainCallback (internal/process/next_tick.js:218:9)`\r\n\r\ndebug 0x83204ac86474f0efd8b8c4d53eaab84db1d7d7753d9368c9b44c59b3c3344b42\r\n\r\n`\r\n(node:68219) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'sourcePath' of undefined\r\n(node:68219) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.`\r\n\r\n## Environment\r\n\r\n* Operating System: MAC \r\n* Ethereum client: Ganache\r\n* Truffle version Truffle v4.1.0 (core: 4.1.0)\r\n* node version latest updated today\r\n* npm version latest updated today\r\n"},"comment":{"url":"https://api.github.com/repos/trufflesuite/truffle/issues/comments/369996892","html_url":"https://github.com/trufflesuite/truffle/issues/830#issuecomment-369996892","issue_url":"https://api.github.com/repos/trufflesuite/truffle/issues/830","id":369996892,"user":{"login":"cgewecke","id":7332026,"avatar_url":"https://avatars0.githubusercontent.com/u/7332026?v=4","gravatar_id":"","url":"https://api.github.com/users/cgewecke","html_url":"https://github.com/cgewecke","followers_url":"https://api.github.com/users/cgewecke/followers","following_url":"https://api.github.com/users/cgewecke/following{/other_user}","gists_url":"https://api.github.com/users/cgewecke/gists{/gist_id}","starred_url":"https://api.github.com/users/cgewecke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgewecke/subscriptions","organizations_url":"https://api.github.com/users/cgewecke/orgs","repos_url":"https://api.github.com/users/cgewecke/repos","events_url":"https://api.github.com/users/cgewecke/events{/privacy}","received_events_url":"https://api.github.com/users/cgewecke/received_events","type":"User","site_admin":false},"created_at":"2018-03-02T17:46:37Z","updated_at":"2018-03-02T17:46:37Z","author_association":"CONTRIBUTOR","body":"@microdesign The core of this error is:\r\n```shell\r\nDeploying HashnodeCrowdsale... ... Error: VM Exception while processing transaction: revert\r\n```\r\n\r\nTo understand what is happening here I suggest writing Javascript tests that verify your contract can be deployed via a simple `.new`, e.g:\r\n```javascript\r\nit('should deploy', async function(){\r\n  const instance = await HashNodeCrowdsale();\r\n});\r\n```\r\n\r\nGoing to close this because the possible causes of this error when deploying a Crowdsale contract are numerous and it's not clear this issue is `migrations` specific. Additionally there are no clear reproduction steps. Please feel free to re-open after your tests pass and you can link to your migrations and contract code or give us a simple case to reproduce. Thanks! "}}
{"actor":{"display_login":"cgewecke"}}