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

gov/v1 #420

Closed
Philipp-Sc opened this issue Jul 27, 2023 · 2 comments
Closed

gov/v1 #420

Philipp-Sc opened this issue Jul 27, 2023 · 2 comments

Comments

@Philipp-Sc
Copy link
Contributor

Hi,

is there a reason gov/v1 is not available as export?

/// Messages and services handling governance
   pub mod gov {
       pub mod v1beta1 {
           include!("prost/cosmos-sdk/cosmos.gov.v1beta1.rs");
       }
   }

I want to use the newer gov/v1 instead of gov/v1beta, since I get the following error quite often when querying for proposals.

codespace sdk code 29: invalid type: can't convert a gov/v1 Proposal to gov/v1beta1 Proposal when amount of proposal messages is more than one

@Philipp-Sc
Copy link
Contributor Author

Philipp-Sc commented Jul 27, 2023

cosmos/cosmos-sdk#14401

It looks like gov/v1 is expected to have replaced gov/v1beta1, the existing conversion hack makes it possible for most proposals to be backwards compatible.

@tony-iqlusion
Copy link
Member

Added in #437

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