{"action":"closed","issue":{"url":"https://api.github.com/repos/OpenZeppelin/openzeppelin-solidity/issues/1224","repository_url":"https://api.github.com/repos/OpenZeppelin/openzeppelin-solidity","labels_url":"https://api.github.com/repos/OpenZeppelin/openzeppelin-solidity/issues/1224/labels{/name}","comments_url":"https://api.github.com/repos/OpenZeppelin/openzeppelin-solidity/issues/1224/comments","events_url":"https://api.github.com/repos/OpenZeppelin/openzeppelin-solidity/issues/1224/events","html_url":"https://github.com/OpenZeppelin/openzeppelin-solidity/issues/1224","id":352500357,"node_id":"MDU6SXNzdWUzNTI1MDAzNTc=","number":1224,"title":"\"The contract code couldn't be stored, please check your gas amount\" when inheriting from Crowdsale","user":{"login":"shabbosgoy","id":29663190,"node_id":"MDQ6VXNlcjI5NjYzMTkw","avatar_url":"https://avatars0.githubusercontent.com/u/29663190?v=4","gravatar_id":"","url":"https://api.github.com/users/shabbosgoy","html_url":"https://github.com/shabbosgoy","followers_url":"https://api.github.com/users/shabbosgoy/followers","following_url":"https://api.github.com/users/shabbosgoy/following{/other_user}","gists_url":"https://api.github.com/users/shabbosgoy/gists{/gist_id}","starred_url":"https://api.github.com/users/shabbosgoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shabbosgoy/subscriptions","organizations_url":"https://api.github.com/users/shabbosgoy/orgs","repos_url":"https://api.github.com/users/shabbosgoy/repos","events_url":"https://api.github.com/users/shabbosgoy/events{/privacy}","received_events_url":"https://api.github.com/users/shabbosgoy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-21T11:37:33Z","updated_at":"2018-08-21T19:33:09Z","closed_at":"2018-08-21T19:33:09Z","author_association":"NONE","body":"## 🎉 Description\r\n\r\nWhen creating a basic contract, without any functionality whatsoever, that inherits from Crowdsale (i.e. Crowdsale.sol), the aforementioned error occurs. This occurs both on Ganach, Ropsten and Rinkeby. The moment I leave out the inheritance (i.e. \"is Crowdsale\" portion), the contract compiles and migrates just fine to Ganach, Ropsten and Rinkeby.\r\n\r\nWorking code:\r\n```\r\npragma solidity ^0.4.24;\r\n\r\nimport \"./PrettyToken.sol\";\r\nimport \"../node_modules/openzeppelin-solidity/contracts/crowdsale/Crowdsale.sol\";\r\n\r\ncontract PrettyTokenSale {\r\n\r\n  constructor(uint256 _rate, address _wallet, ERC20 _token) public {\r\n\r\n  }\r\n\r\n  function doNothing() public returns (bool success) {\r\n  \treturn true;\r\n  }\r\n}\r\n```\r\n\r\nNot working code:\r\n```\r\npragma solidity ^0.4.24;\r\n\r\nimport \"./PrettyToken.sol\";\r\nimport \"../node_modules/openzeppelin-solidity/contracts/crowdsale/Crowdsale.sol\";\r\n\r\ncontract PrettyTokenSale is Crowdsale {\r\n\r\n  constructor(uint256 _rate, address _wallet, ERC20 _token) public Crowdsale(_rate, _wallet, _token) {\r\n\r\n  }\r\n\r\n  function doNothing() public returns (bool success) {\r\n  \treturn true;\r\n  }\r\n}\r\n```\r\n\r\n- [x ] 🐛 This is a bug report.\r\n- [ ] 📈 This is a feature request.\r\n\r\n<!-- Please check one of the above by placing an x in the box. -->\r\n\r\n## 💻 Environment\r\n\r\nNext, we need to know what your environment looks like.\r\n\r\n- Which version of OpenZeppelin are you using?\r\nLatest, on Windows 10. Latest Node. Latest Truffle. Latest everything.\r\n\r\n- What network are you deploying to? Ganache? Ropsten?\r\nGanache, Ropsten, Rinkeby\r\n\r\n- How are you deploying your OpenZeppelin-backed contracts? truffle? Remix? Let us know!\r\n\r\n## 📝 Details\r\n\r\nWhen deploying to both Ropsten and Rinkeby, the error I mentioned above happens. When deploying to Ganache I get:\r\n`Error encountered, bailing. Network state unknown. Review successful transactions manually.\r\nError: VM Exception while processing transaction: revert`\r\n\r\n## 🔢 Code To Reproduce Issue [ Good To Have ]\r\n\r\nSee initial report.\r\n\r\n## 👍 Other Information\r\nThis also happens when copy-pasting the example Crowdsale contract in the Github. When copy-pasting the actual code from Crowdsale.sol into my own contract, such as to make my contract have the same functionality without inheriting, I get the same error.\r\n"}}
{"actor":{"display_login":"nventuro"}}