File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -23,5 +23,5 @@ might define others.
23
23
` DistributionQuery::DelegationTotalRewards ` and
24
24
` DistributionQuery::DelegatorValidators ` queries. Only chains running CosmWasm
25
25
` 1.4.0 ` or higher support this.
26
- - ` cosmwasm_2_0 ` enables ` CosmosMsg::Any ` . Only chains running CosmWasm ` 2.0.0 `
27
- or higher support this.
26
+ - ` cosmwasm_2_0 ` enables ` CosmosMsg::Any ` and ` QueryRequest::Grpc ` . Only chains
27
+ running CosmWasm ` 2.0.0 ` or higher support this.
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ cosmwasm_1_3 = ["cosmwasm_1_2"]
47
47
# It requires the host blockchain to run CosmWasm `1.4.0` or higher.
48
48
cosmwasm_1_4 = [" cosmwasm_1_3" ]
49
49
# This enables functionality that is only available on 2.0 chains.
50
- # It adds `CosmosMsg::Any`, replacing `CosmosMsg::Stargate`.
50
+ # It adds `CosmosMsg::Any`, replacing `CosmosMsg::Stargate`. It also adds `QueryRequest::Grpc`.
51
51
cosmwasm_2_0 = [" cosmwasm_1_4" ]
52
52
53
53
[dependencies ]
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ pub enum QueryRequest<C> {
66
66
#[ cfg( feature = "stargate" ) ]
67
67
Ibc ( IbcQuery ) ,
68
68
Wasm ( WasmQuery ) ,
69
+ #[ cfg( feature = "cosmwasm_2_0" ) ]
69
70
Grpc ( GrpcQuery ) ,
70
71
}
71
72
@@ -139,6 +140,7 @@ impl<C: CustomQuery> From<WasmQuery> for QueryRequest<C> {
139
140
}
140
141
}
141
142
143
+ #[ cfg( feature = "cosmwasm_2_0" ) ]
142
144
impl < C : CustomQuery > From < GrpcQuery > for QueryRequest < C > {
143
145
fn from ( msg : GrpcQuery ) -> Self {
144
146
QueryRequest :: Grpc ( msg)
Original file line number Diff line number Diff line change @@ -606,6 +606,7 @@ impl<C: CustomQuery + DeserializeOwned> MockQuerier<C> {
606
606
QueryRequest :: Stargate { .. } => SystemResult :: Err ( SystemError :: UnsupportedRequest {
607
607
kind : "Stargate" . to_string ( ) ,
608
608
} ) ,
609
+ #[ cfg( feature = "cosmwasm_2_0" ) ]
609
610
QueryRequest :: Grpc ( _) => SystemResult :: Err ( SystemError :: UnsupportedRequest {
610
611
kind : "GRPC" . to_string ( ) ,
611
612
} ) ,
You can’t perform that action at this time.
0 commit comments