Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Feature Request][RPC] 新增一个能通过 resource name 例如 0x1::Account::Balance 获取到全部余额的的方法 #3447

Closed
uvd opened this issue Jun 6, 2022 · 2 comments · Fixed by #3586
Assignees
Labels
enhancement Enhancement

Comments

@uvd
Copy link
Contributor

uvd commented Jun 6, 2022

Feature Request

Describe the Feature Request

比如我要获取一个 地址的 全部余额 现在的做法的是变量整个 resource 的 0x1::Account::Balance 才能得到 一是不方便 二是有性能问题

Describe Preferred Solution

Describe Alternatives

Related Code

Additional Context

If the feature request is approved, would you be willing to submit a PR?
Yes / No (Help can be provided if you need assistance submitting a PR)

@jolestar
Copy link
Member

jolestar commented Jun 6, 2022

可以考虑给 state.list_resource 增加一个过滤参数,用于遍历过滤类似 0x1::Account::Balance 这种泛型类型的 resource。

@jiangying000
Copy link
Collaborator

working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants