cosmos / cosmos-rust

The home of all shared Rust resources for the Cosmos ecosystem.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gov/v1

Philipp-Sc opened this issue · comments

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

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.