Hey I'm updating my truffle project from V2 to V3, and I am getting this error after migrating:
sudo truffle migrate --network development
Using network 'development'.
Running migration: 1_initial_migration.js
Deploying Migrations...
Error encountered, bailing. Network state unknown. Review successful transactions manually.
Error: Migrations error: contract binary not set. Can't deploy new instance.
at Function.new (/usr/lib/node_modules/truffle/node_modules/truffle-contract/contract.js:324:15)
at /usr/lib/node_modules/truffle/node_modules/truffle-migrate/node_modules/truffle-deployer/src/actions/deploy.js:25:29
at process._tickCallback (internal/process/next_tick.js:103:7)
Here is my truffle.js file:
module.exports = {
networks: {
development: {
host: "localhost",
port: 8545,
network_id: "*"
},
staging: {
host: "localhost",
port: 8546,
network_id: 1337
},
ropsten: {
host: "158.253.8.12",
port: 8545,
network_id: 3
}
} }
Deploy contracts file:
var Project = artifacts.require("./Project.sol");
var FundingHub = artifacts.require("./FundingHub.sol");
module.exports = function(deployer) {
deployer.deploy(Project);
deployer.deploy(FundingHub);
};