I've developed a smart contract using truffle and testrpc, which can be found on GitHub here.
At this point I want to deploy it to ropsten, but I can't figure out how to do that.
After consulting this question/answer, I attempted to concoct a deployment for my smart contract as follows:
module.exports = {
networks: {
localhost: {
host: "localhost",
port: 8546, // for ropsten expose this one
//port: 8545, // expose this one for testrpc
network_id: "*" // Match any network id
},
// for ropsten uncomment all of this
// for testrpc comment it all out
ropsten: {
host: "localhost",
port: 8545,
network_id: "3"
}
}
};
and here's how I tried to execute the deployment:
> truffle migrate --network ropsten
Using network 'ropsten'.
Running migration: 1_initial_migration.js
Deploying Migrations...
... undefined
Error encountered, bailing. Network state unknown. Review successful transactions manually.
Error: exceeds block gas limit
This is a screenshot of the full terminal output:
My question is, how can I deploy this simple contract to ropsten?
EDIT:
Found this:
but it didn't seem to help, i.e. still getting an error:



