Tony Rose
Tony Rose
Jul 27, 2017 · 1 min read

Hi — In working through this tutorial today, I wasgetting this error when doing the “truffle migrate” step:

Macintosh-3:hello-worl-vote-truffle tony$ truffle migrate

Using network ‘development’.

Running migration: 1_initial_migration.js

Deploying Migrations…

Error encountered, bailing. Network state unknown. Review successful transactions manually.

Error: exceeds block gas limit

I found that by manually reducing the gas amount in truffle.js the contract deployed…

development: {
host: ‘localhost’,
port: 8545,
network_id: ‘*’ , // Match any network id
from: “0xebeaed20ca31159e4b96eb39af084430a725bff7” ,
gas: 471238
}

Running migration: 1_initial_migration.js

Deploying Migrations…

Migrations: 0xdd6920ee042ed4d73b0ed522fbdb14a928e231aa

Saving successful migration to network…

    Tony Rose

    Written by

    Tony Rose