You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
大家开发的时候,基本上都是在本地的dev 环境完成部署。
但是,当开发完成需要发布的时候,需要怎么做呢?
目前有两个选择:
连接的地址: ws://main.seed.starcoin.org:9870
注意: 连接远程的rpc 节点需要初始化一个本地目录。
这个目录是用来放置你本地的账号信息的。部署合约也是通过这个账号。 同时会从这个账号扣除相应的gas 费。
如果你想部署到你自己原来的账号里,需要通过 starmask 导出对应的账号的私钥。
然后通过 account import 导入 即可。
简单流程如下:
starcoin --local-account-dir ./wallet --connect ws://barnard.seed.starcoin.org:9870 console
完事儿,你的合约就跑在真实的线上环境了。
Beta Was this translation helpful? Give feedback.
All reactions