Sui.

帖子

分享您的知识。

Tawhid.
Dec 14, 2024
专家问答

Is it possible to retrieve an object directly by its ID within a smart contract on Sui?

Is it possible to retrieve an object directly by its ID within a smart contract on Sui?

  • Sui
  • SDKs and Developer Tools
1
1
分享
评论
.

答案

1
CarlkawIy.
Dec 14 2024, 23:50

在 Sui 的智能合约中,无法直接通过其 ID 检索对象. Sui 上的智能合约无法像 Solidity/EVM 那样直接访问全球存储. 你可以从外部系统(客户端)获取一个对象,并将该对象作为参数传递给智能合约函数.

1
最佳答案
评论
.

你知道答案吗?

请登录并分享。

Sui is a Layer 1 protocol blockchain designed as the first internet-scale programmable blockchain platform.

610帖子1335答案
Sui.X.Peera.

赚取你的 1000 Sui 份额

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

奖励活动七月