Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Feature Request] 构想一个 WithdrawCapability 的使用场景并实现 #31

Open
jolestar opened this issue Jul 6, 2022 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@jolestar
Copy link
Contributor

jolestar commented Jul 6, 2022

Starcoin 的每个账户都有一个 withdrawal_capability 字段,
并且提供了 Account::extract_withdraw_capability 方法可以把用户的 WithdrawCapability 拿出来,
同时也提供了 Account::withdraw_with_capability, 可以通过 WithdrawCapability 从该 Capability 的原拥有者账户提取 Token。

设计一个应用场景,使用 WithdrawCapability, 比如资产托管。

@vueadmin
Copy link
Contributor

提示方式可以是任何方式么

@jolestar
Copy link
Contributor Author

提示方式可以是任何方式么

这个需求是用来测试那个提示的场景。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants