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

can't convert a gov/v1 Proposal to gov/v1beta1 Proposal when amount of proposal messages not exactly one #1537

Open
rickball opened this issue Jan 3, 2024 · 2 comments

Comments

@rickball
Copy link

rickball commented Jan 3, 2024

Hi,

I'm not able to query proposals via latest @cosmjs libs. I'm receiving mentioned error:

Query failed with (6): can't convert a gov/v1 Proposal to gov/v1beta1 Proposal when amount of proposal messages not exactly one

It seems that @cosmjs/stargate is still using cosmjs-types/cosmos/gov/v1beta1/query which is not able to proceed gov/v1 proposals.

Currently I'm receiving this error when trying to access Osmosis proposals.

Is there any way how to access it rn?

Thanks

@rickball rickball changed the title Query failed with (6): can't convert a gov/v1 Proposal to gov/v1beta1 Proposal when amount of proposal messages not exactly one can't convert a gov/v1 Proposal to gov/v1beta1 Proposal when amount of proposal messages not exactly one Jan 3, 2024
@rickball
Copy link
Author

any thoughts, please?

@zakarialounes
Copy link
Contributor

@rickball I'm not part of the team. From the .proto files you can generate the gov/v1/query.ts file and then use QueryClientImplem to fetch Proposals. Not necessarily obvious if you've never done it, but it's a good way to understand how everything works until it's managed by cosmjs itself.

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

No branches or pull requests

2 participants