当我们本地完成了一系列测试以后,接下来就是准备上线了。
关于合约部署可以参考这篇:Solidity 合约使用 truffle 部署到测试网和主网
你可能有一个疑问,在上主网之前,先上测试网的作用是什么呢?
理由是,我们可以通过 MetaMask 切换到 ropsten 网络,进行 Dapp 上的常规功能操作,进行初步验证。
如果确认在 POW 机制上也没有问题之后,那么就可以上线主网了。
所以上测试网 ropsten 的作用其实就是双保险。
Link:https://www.cnblogs.com/farwish/p/12490387.html