Skip to content

Commit c8bfa9c

Browse files
0xArbwebmaster128
authored andcommitted
supplyresponse::new
1 parent 0ec587d commit c8bfa9c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/std/src/query/bank.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ pub struct SupplyResponse {
3131
pub amount: Coin,
3232
}
3333

34+
#[cfg(feature = "cosmwasm_1_1")]
35+
impl SupplyResponse {
36+
pub fn new(amount: Coin) -> Self {
37+
Self {
38+
amount,
39+
}
40+
}
41+
}
42+
43+
3444
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq, JsonSchema)]
3545
#[serde(rename_all = "snake_case")]
3646
pub struct BalanceResponse {

0 commit comments

Comments
 (0)