NEAR 协议编译错误

发布于 2025-01-20 22:15:51 字数 451 浏览 6 评论 0原文

大家好,我在附近(@ MacBook M1芯片终端)收到了一个CompilationError,我打电话给Helloworld函数,但我遇到了这个错误。有人知道为什么吗?预先感谢您的帮助:)

near call dev-1649760447277-15731695561522 helloWorld --accountId kadirg.testnet
Scheduling a call: dev-1649760447277-15731695561522.helloWorld()
Doing account.functionCall()

Failure [dev-1649760447277-15731695561522]: Error: Cannot find contract code for account dev-1649760447277-15731695561522

type: 'CodeDoesNotExist'

Hello Guys I got a CompilationError at Near (@ Macbook M1 Chip Terminal) I called the helloWorld function but I got that error. Does anyone have an idea why? Thanks in advance for help :)

near call dev-1649760447277-15731695561522 helloWorld --accountId kadirg.testnet
Scheduling a call: dev-1649760447277-15731695561522.helloWorld()
Doing account.functionCall()

Failure [dev-1649760447277-15731695561522]: Error: Cannot find contract code for account dev-1649760447277-15731695561522

type: 'CodeDoesNotExist'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

廻憶裏菂餘溫 2025-01-27 22:15:51

入住

“ https://stats.gallery/testnet/dev-1649760447277-15731695561522/contract?t = week?

附近testnet

此帐户该帐户没有合同部署。
因此,这不是“编译错误”,也许您没有编译,并且可以肯定您没有部署它。

您需要对其进行编译:

$ yarn build:release
$ asb

然后进行部署:

$ near dev-deploy ../build/release/simple.wasm

您可以遵循本指南:
第一份合同

checking in:

Stats Gallery - Contract

and:

NEAR Testnet

This account has no contract deployed.
So this is not a "Compilation Error", maybe you didn't compiled and for sure you didn't deploy it.

You need to compile it with:

$ yarn build:release
$ asb

and then deploy with:

$ near dev-deploy ../build/release/simple.wasm

You can follow this guide:
First contract AS

半透明的墙 2025-01-27 22:15:51

您可以检查功能名称helloworld在index.ts文件中是正确的吗?

Can you check function name helloWorld is correct in index.ts file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文