Skip to content

Commit 3443f9a

Browse files
authored
Merge pull request #2165 from srdtrk/serdar/xxx-query-req-empty
imp: custom query type is made empty by default
2 parents 15bb414 + 6fab178 commit 3443f9a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ and this project adheres to
1212

1313
- cosmwasm-std: Fix CWA-2024-002
1414
- cosmwasm-std: Fix `Reply` deserialization on CosmWasm 1.x chains ([#2159])
15+
- cosmwasm-std: Updated `QueryRequest` enum to use the default generic parameter
16+
`Empty`. ([#2165])
1517

1618
[#2159]: https://github.com/CosmWasm/cosmwasm/pull/2159
19+
[#2165]: https://github.com/CosmWasm/cosmwasm/pull/2165
1720

1821
### Added
1922

packages/std/src/query/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub use wasm::*;
4343
#[non_exhaustive]
4444
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
4545
#[serde(rename_all = "snake_case")]
46-
pub enum QueryRequest<C> {
46+
pub enum QueryRequest<C = Empty> {
4747
Bank(BankQuery),
4848
Custom(C),
4949
#[cfg(feature = "staking")]

0 commit comments

Comments
 (0)