Who owns the truffle contracts?

I use testrpc and truffle to verify my contract.

When I type truffle migrate, this will lead to the deployment of my contract on the testrpc network.

My question is: which account (from testrpc accounts) was used to deploy the contract.

In other words, whose owner is the contract?

Thank you in advance

+6
source share
1 answer

By default, the owner accounts[0], so the first account in the list, but you can set the owner by adding "from" to the truffle.js configuration file

module.exports = {
  networks: {
    development: {
      host: "localhost",
      port: 8545,
      network_id: "*",
      from: "0xda9b1a939350dc7198165ff84c43ce77a723ef73"
    }
  }
};

. https://github.com/trufflesuite/truffle/issues/138

+14

Source: https://habr.com/ru/post/1017200/


All Articles