Move.

帖子

分享您的知识。

Raju.
Raju158
Dec 31, 2024
专家问答

Can deploying and calling a contract be done in one step?

I'm trying to reduce the number of user clicks in my application process. Currently, I have two separate actions: deploying a contract and sending a PTB. I'm looking for a way to merge these into a single action to make things simpler for the users. Is it possible to deploy a contract and simultaneously call some of its functions within a single PTB?

  • Move CLI
1
1
分享
评论
.

答案

1
Pluto Dev👽.
Jan 1 2025, 08:22

看来虽然你可以在 PTB 中发布或部署合约,但你无法立即调用它,因为包地址在 PTB 中是未知的,而且它不是作为发布调用本身的返回值提供的.

0
最佳答案
评论
.

你知道答案吗?

请登录并分享。

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

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

赚取你的 1000 Sui 份额

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

奖励活动七月