我找到了这篇关于如何在本地实现它的快速启动指南。但是,关于我如何将智能契约部署到devnet或mainnet上,并没有任何信息。
所以我改变了端点:
const client = new TonClient({
network: {
endpoints: ["https://net.ton.dev"]
}
})根据评论,我删除了useGiver
// Request contract deployment funds form a local TON OS SE giver
// not suitable for other networks.
// Deploy `hello` contract.
await helloAcc.deploy(/*{ useGiver: true }*/);并得到以下错误消息:
Account does not exist. You need to transfer funds to this account first to have a positive balance and then deploy its code如何为我的帐户提供资金,有没有像airdrop这样的自动方法?
发布于 2021-12-24 08:51:16
发布于 2021-12-13 11:16:27
您需要首先计算目标链中的契约地址,然后将其翻转到1次才能成功部署。
所需气体的数量取决于合同的代码,但永远不能超过1。
发布于 2021-12-13 19:59:21
在net.ton.dev中现在没有自动的赠予者。但是您可以从这里获得rubins : faucet.extraton.io,您也可以自己在这个测试网络中创建自动提供程序。
https://stackoverflow.com/questions/70301140
复制相似问题