she*_*mar 11 solidity smartcontracts truffle
我正在使用testrpc和松露来测试我的合同.
当我输入时truffle migrate,这会将我的合同部署到testrpc网络.
我的问题是,哪个帐户(来自testrpc帐户)已用于部署合同.
换句话说,谁的合同所有者?
先感谢您
Cre*_*ema 18
默认情况下,所有者是accounts[0]列表中的第一个帐户,但您可以通过在truffle.js配置文件中添加"from"来设置所有者
module.exports = {
networks: {
development: {
host: "localhost",
port: 8545,
network_id: "*",
from: "0xda9b1a939350dc7198165ff84c43ce77a723ef73"
}
}
};
Run Code Online (Sandbox Code Playgroud)
有关迁移的更多信息,请参阅 https://github.com/trufflesuite/truffle/issues/138
| 归档时间: |
|
| 查看次数: |
3510 次 |
| 最近记录: |