[英]Solidity migrate contract dry run vs for real
Summary: Using truffle to deploy to rinkeby via infura. 简介:使用松露通过infura部署到rinkeby。
I just deployed my crowdsale and that seems to succeed. 我刚刚进行了众筹,似乎成功了。 However truffle is not showing me a contract address which is worrying.
但是,松露并未显示给我令人担忧的合同地址。 I notice
Migrations dry-run (simulation)
at the top, which makes me wonder if its not being deployed, its just testing it... is this a thing? 我在顶部注意到了
Migrations dry-run (simulation)
,这使我想知道是否未部署它,只是对其进行了测试……这是问题吗? How do i get it to actually deploy? 我如何才能真正部署它?
OK as this was hard to debug, I have an answer that may help others. 好的,因为这很难调试,我有一个可以帮助其他人的答案。
1.0.0-web3one.0
version of truffle-hdwallet-provider
truffle-hdwallet-provider
的1.0.0-web3one.0
版本 I'm making quite good progress with the new 1.0 version of ethereum tools, and beta of truffle, so shout if I an be of assistance! 我在新的以太坊工具1.0版本和松露测试版方面取得了不错的进展,如果我有帮助,请大喊大叫!
Please try put it in the networks section, the option skipDryRun: true
请尝试将其放入“网络”部分,选项
skipDryRun: true
module.exports = {
networks: {
...
ropsten:{
provider: () => new HDWalletProvider(mnemonics, endpoint),
network_id: 3,
gas: 5000000,
confirmation: 2,
timeoutBlocks: 200,
skipDryRun: true
},
...
}
}
You can use Etherlime for deployment of smart contracts. 您可以使用Etherlime部署智能合约。 Actually you can use it for everything instead of truffle.
实际上,您可以使用它代替松露。 It is simpler and with more information.
它更简单,并且包含更多信息。 In my opinion is the better tool.
我认为是更好的工具。 It is based on ethersjs which is a lot better than web3js.
它基于ethersjs,比web3js更好。 Here is a link to the documentation
这是文档的链接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.