This question is an extension of Deploying to testnet using Truffle and Metamask

Need to deploy smart contracts over ropsten testnet that connected through metamask . I am using truffle framework to write smart contract so what should i write in truffle.js to achieve the task.

  • I just answered this post which should give you all you need: ethereum.stackexchange.com/a/23320/4108 – Greg Jeanmart Jul 30 '17 at 13:21
  • i follow your answer , i use second method but it gives me error - (node:23567) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: this.provider.sendAsync is not a function how do i resolve it – Satyam Agrawal Jul 31 '17 at 14:09
  • Hi, Sorry I forgot one point. The answer is update for more details. But inn short, you need to run npm init and then npm install ethereumjs-wallet bip39 web3-provider-engine web3@0.19.0 --save – Greg Jeanmart Aug 1 '17 at 10:13
  • @GregJeanmart i already do that but same problem occurs – Satyam Agrawal Aug 1 '17 at 10:30
  • It's working correctly for me. I copied my package.json here so you can have a look and maybe remove the node-modules folder and rerun npm install – Greg Jeanmart Aug 1 '17 at 11:00