Error: The contract code couldn't be stored, please check your gas amount during deploy

2018-02-23 10:31:24

I know this issue was discussed before several times, but I cant get the solution to my problem.

I'm trying to deploy a contract with Truffle on Ganache.

During the deployment in 2_deploy_contracts.js I deploy some contracts and libraries which ones are deployed.

Then when I try to deploy the contract that has the libraries and the address of the contracts in the constructor I got the following Error stack :

at Object.callback


at /usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/method.js:142:1

at /usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:89:1

at /usr/local/lib/node_modules/truffle/build/webpack:/~/truffle-migrate/index.js:225:1

at /usr/local/lib/node_modules/truffle/build/webpack:/~/truffle-provider/wrapper.js:134:1

at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/w