Skip to content

Commit a8725fa

Browse files
committed
Fix stargate and grpc query docs
1 parent 752c830 commit a8725fa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/std/src/query/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub enum QueryRequest<C> {
5858
#[deprecated = "Please use the GrpcQuery instead"]
5959
Stargate {
6060
/// this is the fully qualified service path used for routing,
61-
/// eg. custom/cosmos_sdk.x.bank.v1.Query/QueryBalance
61+
/// eg. "/cosmos_sdk.x.bank.v1.Query/QueryBalance"
6262
path: String,
6363
/// this is the expected protobuf message type (not any), binary encoded
6464
data: Binary,
@@ -81,8 +81,9 @@ pub enum QueryRequest<C> {
8181
/// [grpcurl](https://github.com/fullstorydev/grpcurl).
8282
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
8383
pub struct GrpcQuery {
84-
/// The fully qualified endpoint path used for routing,
85-
/// eg. "cosmos.authz.v1beta1.Query.Grants"
84+
/// The fully qualified endpoint path used for routing.
85+
/// It follows the format `/service_path/method_name`,
86+
/// eg. "/cosmos.authz.v1beta1.Query/Grants"
8687
path: String,
8788
/// The expected protobuf message type (not [Any](https://protobuf.dev/programming-guides/proto3/#any)), binary encoded
8889
data: Binary,

0 commit comments

Comments
 (0)