diff --git a/packages/std/src/query.rs b/packages/std/src/query.rs index 7321a7d5df..4bbeab1f4f 100644 --- a/packages/std/src/query.rs +++ b/packages/std/src/query.rs @@ -13,8 +13,9 @@ pub enum QueryRequest { Bank(BankQuery), Custom(C), Staking(StakingQuery), - /// A Stargate message encoded the same way as a protobof [Any](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto). + /// A Stargate query encoded the same way as abci_query, with path and protobuf encoded Data. /// The format is defined in [ADR-21](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-021-protobuf-query-encoding.md) + /// The response is also protobuf encoded. The caller is responsible for compiling the proper protobuf definitions #[cfg(feature = "stargate")] Stargate { /// this is the fully qualified service path used for routing, diff --git a/packages/std/src/results/cosmos_msg.rs b/packages/std/src/results/cosmos_msg.rs index 76f450ec04..ce941f6090 100644 --- a/packages/std/src/results/cosmos_msg.rs +++ b/packages/std/src/results/cosmos_msg.rs @@ -23,9 +23,7 @@ where /// This is the same structure as messages in `TxBody` from [ADR-020](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-020-protobuf-transaction-encoding.md) #[cfg(feature = "stargate")] Stargate { - /// 'type' is a reserved keyword, so we need to use a serde rename - #[serde(rename = "type")] - kind: String, + type_url: String, data: Binary, }, Wasm(WasmMsg),