blogchain在testnet上部署合同

时间:2017-09-18 07:09:53

标签: migration contract truffle

我正在运行truffle migrate以部署合同并将其上传到testnet。

但部署结果不明白。

这是运行合同后的输出:

Using network 'live'.
Running migration: 2_deploy_contracts.js
Replacing Voting...
... <some number 1> - what is this number?
Voting: <some number 2> - what is this number? (contract address?)
Saving successful migration to network...
...<some number 3> - what is this number?
Saving artifacts...

1 个答案:

答案 0 :(得分:0)

从日志中,您似乎正在部署到实时网络。尝试在迁移时设置网络标志

truffle migrate --network  your_network_name_in_config_file 

您还可以设置--verbose-rpc标志以查看更多信息