Skip to content

Commit

Permalink
Fix stargate and grpc query docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Dec 20, 2023
1 parent b6a1e4b commit cce99ef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/std/src/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub enum QueryRequest<C> {
#[deprecated = "Please use the GrpcQuery instead"]
Stargate {
/// this is the fully qualified service path used for routing,
/// eg. custom/cosmos_sdk.x.bank.v1.Query/QueryBalance
/// eg. "/cosmos_sdk.x.bank.v1.Query/QueryBalance"
path: String,
/// this is the expected protobuf message type (not any), binary encoded
data: Binary,
Expand All @@ -80,8 +80,9 @@ pub enum QueryRequest<C> {
/// [grpcurl](https://github.com/fullstorydev/grpcurl).
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
pub struct GrpcQuery {
/// The fully qualified endpoint path used for routing,
/// eg. "cosmos.authz.v1beta1.Query.Grants"
/// The fully qualified endpoint path used for routing.
/// It follows the format `/service_path/method_name`,
/// eg. "/cosmos.authz.v1beta1.Query/Grants"
path: String,
/// The expected protobuf message type (not [Any](https://protobuf.dev/programming-guides/proto3/#any)), binary encoded
data: Binary,
Expand Down

0 comments on commit cce99ef

Please sign in to comment.