2
$ truffle migrate

Compiling .\contracts\Migrations.sol...
Compiling .\contracts\Voting.sol...
Writing artifacts to .\build\contracts
Using network 'development'.
Running migration: 1_initial_migration.js
Deploying Migrations...
... undefined
Error encountered, bailing. Network state unknown. Review successful 
transactions manually.
Error: insufficient funds for gas * price + value

I am facing error during migration.

my truffle.js is:

require('babel-register')

module.exports = {
  networks: {
    development: {
      host: 'localhost',
      port: 8545,
      network_id: '*', // Match any network id
      gas: 4712388,
      from: '0xe8321ca272cb292Cc2485fBa749Fd20d40ed5C44'
    }
  }
};

gas limit 4712388 then insufficient...

gas limit 4712389 then exceeds...what to do ?

  • is the account unlocked and has funds? – Luiz Soares Mar 19 '18 at 15:17
  • Yes account is funded with 4 ether and unlocked as well.. – BHAWIN Mar 20 '18 at 9:04
  • Please add your code for Voting.sol so I can try to reproduce the error and be more helpful. tks – Luiz Soares Mar 21 '18 at 14:34
  • I am following medium.com/@mvmurthy/… – BHAWIN Mar 23 '18 at 8:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.