I am trying to deploy the SimpleToken code from the Open Zeppelin project and seem to always run out of gas when deploying it to either Kovan or Ganache.
I even specified 4700000 gas in the truffle.js file which is the max gas I can provide. There is nothing fancy in the code - its literally copy and paste from Open Zeppelin.
and I have all the dependent files as well using the import statements.
Any advise is greatly appreciated!
Running migration: 1_initial_migration.js
Deploying Migrations...
... 0x627e13286c9ecbf8f9a0eae53a5e9a0788c9fe42cb6234d9734868a8eb4a70d9
Error encountered, bailing. Network state unknown. Review successful transactions manually.
Error: The contract code couldn't be stored, please check your gas amount.
at Object.callback (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:328412:46)
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:37990:25
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:330356:9
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:176198:11
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:326008:9
at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:329052:7)
at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:176427:18)
at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:176717:12)
at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:176872:12)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:176832:24)