I have created a smart contract(a standard token smart contract) in solidity and truffle. Now I want to deploy it to ethereum network. I want to use ropsten network because I want to use metamask wallet. How to do it? Or what is the best way to deploy it in ethereum network?
[Ethereum] how to deploy smart contract in ethereum network using ropsten network
ethereum-wallet-dappropstensoliditytestnetstokens
Best Answer
You need to use truffle-hdwallet-provider and provide it your wallet mnemonic. The mnemonic is the 12 word phrase which addresses are created from. The wallet should have testnet ether already loaded, which you can get from faucets.
Here's how I've been deploying to different testnets:
In
truffle.js
:Then just run: