Move.

帖子

分享您的知识。

LargeCappWithTwo.
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
分享
评论
.

答案

2
Theoremus.
Mar 27 2025, 05:30

你可以尝试运行该命令sui client publish --skip-dependency-verification来绕过依赖性检查. 但是,请确保这种方法与项目的依赖关系管理策略保持一致.

2
最佳答案
评论
.
Noro4774.
Mar 27 2025, 03:44

此错误意味着依赖项的本地版本my_coin与链上版本不一致. 你应该验证你是通过 my_coinGithub 链接还是通过 Move.toml 文件中的本地路径进行加载.

2
评论
.

你知道答案吗?

请登录并分享。

Move is an executable bytecode language used to implement custom transactions and smart contracts.

148帖子231答案
Sui.X.Peera.

赚取你的 1000 Sui 份额

获取声誉积分,并因帮助 Sui 社区成长而获得奖励。

奖励活动七月