How do you select an account to deploy a contract using: 1)Metamask 2)Parity 3)some config file
Asked
Active
Viewed 6,487 times
1 Answers
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
unlockyour key – rstormsf Oct 01 '17 at 02:02