Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 1.25 KB

README.md

File metadata and controls

50 lines (30 loc) · 1.25 KB

cadence-deployer

单独部署 Cadence 合约至 Flow 测试网

安装依赖

yarn

修改配置

按照.env.example的格式创建一个 .env文件(该文件数据不要公开上传),里面的ACCOUNT_ADDRESSACCOUNT_PRIVATE_KEY 分别是合约想要部署的账户地址和账户的私钥。

运行启动

yarn start:dev
  • 正常运行结束后,合约应该会被成功部署到对应的区块链网络上
starting deployment of contracts, accessNode: https://access-testnet.onflow.org  address: 64ce437a3838c89d
deploying...
deploying helloworld contract...
add contract name: HelloWorld
deployed helloworld contract
result {
  helloworld: { status: 4, statusCode: 0, errorMessage: '', events: [ [Object] ] }
}
https://flow-view-source.com/testnet/account/0x64ce437a3838c89d
Done in 30.48s.

查看合约

https://flow-view-source.com/testnet/account/ACCOUNT_ADDRESS.