我已经在TestNet中部署了智能合同,如何更新或删除它们?
嗨,我已经在TestNet中部署了一份智能合约,如何更新或删除它们?我尝试了两者 https://flow-view-source.com/ 和cli,但都得到了错误
Hi, I have deployed a smart contract in testnet, how to update or delete them? i tried both https://flow-view-source.com/ and CLI but both get this error
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不支持将新字段添加到现有合同中。允许的完整列表在此处 https://docs.onflow.org/cadence/cadence/语言/合同通用性
我建议仅创建一个新的TestNet帐户并将新合同部署到该新地址。
Adding new fields to an existing contract is not supported. The full list of changes allowed are here https://docs.onflow.org/cadence/language/contract-updatability
I would recommend just creating a new Testnet account and deploy the new contracts to that new address.