i'm trying to run truffle migrate and it gives me always this error. Error: The contract code couldn't be stored, please check your gas amount.
MBP-de-Alicia-2:smartContracts alicialombarte$ truffle migrate
Using network 'development'.
Running migration: 1_initial_migration.js
Deploying Migrations...
... 0x7291b9d65712a87c6c9937fc7c6bc110398d718d49ca18cb8399ecdaf04f6a7f
Migrations: 0xef1878e96466e0c68d47f8124cd7518f694256a7
Saving artifacts...
Running migration: 2_deploy_contracts.js
Deploying idFactory...
... 0x0e1b9dbb9f4a2d12c1e57757b13ffce046ff32a719643fe0cf671542cce4898b
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/webpack:/~/web3/lib/web3/contract.js:147:1)
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-core/~/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/webpack:/~/web3/lib/web3/httpprovider.js:128:1)
at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)
at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)
at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:469:1)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Does anyone know why? i'm using Ganache CLI v6.0.3 (ganache-core: 2.0.2) Thanks !
EDIT. here is my truffle.js
module.exports = {
networks: {
development: {
host: "localhost",
port: 8545,
network_id: "5777" // Match any network id
}
}
};
truffle.js
? – Lauri Peltonen May 29 '18 at 15:16