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

Query pinned wasm codes #596

Closed
alpe opened this issue Aug 27, 2021 · 3 comments · Fixed by #633
Closed

Query pinned wasm codes #596

alpe opened this issue Aug 27, 2021 · 3 comments · Fixed by #633
Assignees

Comments

@alpe
Copy link
Member

alpe commented Aug 27, 2021

It is currently not possible to query pinned codes or check if a wasm code id is pinned.
CLI support would be nice.

@alpe alpe added this to the v1.0.0 milestone Aug 27, 2021
@ethanfrey
Copy link
Member

Yes, this would be a good query (return list of code ids). Both via grpc and via cli.

@alpe
Copy link
Member Author

alpe commented Oct 8, 2021

As @ethanfrey has pointed out in #633 (review) the implementation does not include the "pinned" data in the code info.

My original thinking was that we need any way to query if a contract is pinned and not necessarily both ways. Getting the list of all pinned contracts was more beneficial to me than by contract id. For my case I would consider this task done and but encourage anybody who really needs this info by code id to open a new task.

@ethanfrey
Copy link
Member

Maybe we can make a 1.x /2.0 query issue for this.

It is not essential, but would be nice to have

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

Successfully merging a pull request may close this issue.

2 participants