帖子
分享您的知识。
Mar 26, 2025
专家问答
How to resolve 'Local version of dependency was not found' error in Sui?
I'm having trouble using an already published coin package in another Move contract. I'm getting an error indicating that the local version of dependency was not found. How can I resolve this issue?
- Move CLI
- Move
1
2
分享
评论
答案
2Theoremus251
Mar 27 2025, 05:30你可以尝试运行该命令sui client publish --skip-dependency-verification
来绕过依赖性检查. 但是,请确保这种方法与项目的依赖关系管理策略保持一致.
2
最佳答案
评论
Noro477459
Mar 27 2025, 03:44此错误意味着依赖项的本地版本my_coin
与链上版本不一致. 你应该验证你是通过 my_coin
Github 链接还是通过 Move.toml 文件中的本地路径进行加载.
2
评论
你知道答案吗?
请登录并分享。
Move is an executable bytecode language used to implement custom transactions and smart contracts.
148帖子231答案