15

How do you select an account to deploy a contract using: 1)Metamask 2)Parity 3)some config file

rstormsf
  • 4,337
  • 2
  • 25
  • 42

1 Answers1

20

I figured it out. in truffle.js you can specify from: field like this:

// Allows us to use ES6 in our migrations and tests.
require('babel-register')

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

rstormsf
  • 4,337
  • 2
  • 25
  • 42