Skip to content

Commit

Permalink
Update field name and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Jan 12, 2021
1 parent 88562c7 commit 09b7880
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/std/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ pub enum QueryRequest<C: CustomQuery> {
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,
Expand Down
4 changes: 1 addition & 3 deletions packages/std/src/results/cosmos_msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 09b7880

Please sign in to comment.