Summary: Using truffle to deploy to rinkeby via infura.
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? 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
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!
Please try put it in the networks section, the option 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. 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. Here is a link to the documentation
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.