- Published on
Truffle Error Encountered Bailing Review Successful Transactions Manually
- Authors
- Name
- Yair Mark
- @yairmark
Today while trying to implement an interface and then trying to run truffle migrate
I received the following error:
Running migration: 2_my_contract.js
Deploying MyContract...
... 0x8bfcf6f65af2fd0575625ecab2b97a8a23f1bc82e7c58d4a28d956e1eccdf663
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 (/home/abc/.nvm/versions/node/v10.12.0/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/contract.js:147:1)
at /home/abc/.nvm/versions/node/v10.12.0/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/method.js:142:1
at /home/abc/.nvm/versions/node/v10.12.0/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:89:1
at /home/abc/.nvm/versions/node/v10.12.0/lib/node_modules/truffle/build/webpack:/packages/truffle-migrate/index.js:225:1
at /home/abc/.nvm/versions/node/v10.12.0/lib/node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1
at XMLHttpRequest.request.onreadystatechange (/home/abc/.nvm/versions/node/v10.12.0/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/httpprovider.js:128:1)
at XMLHttpRequestEventTarget.dispatchEvent (/home/abc/.nvm/versions/node/v10.12.0/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)
at XMLHttpRequest._setReadyState (/home/abc/.nvm/versions/node/v10.12.0/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)
at XMLHttpRequest._onHttpResponseEnd (/home/abc/.nvm/versions/node/v10.12.0/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)
at IncomingMessage.<anonymous> (/home/abc/.nvm/versions/node/v10.12.0/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:469:1)
at IncomingMessage.emit (events.js:187:15)
at endReadableNT (_stream_readable.js:1094:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
After a quick google I came across this answer. There are a number of causes but in my case the issue was that I had not implemented all interface methods.
As soon as I implemented all interface methods this issue went away.