Skip to content

Commit b552ce5

Browse files
committed
chore(lst): thread cw-account query msg
1 parent 005ae48 commit b552ce5

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

cosmwasm/cw-account/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ pub enum ContractError {
236236
#[error("init state version error: {0}")]
237237
InitStateVersion(#[from] InitStateVersionError),
238238

239-
#[error("sender {sender} is a configured admin")]
239+
#[error("sender {sender} is not a configured admin")]
240240
OnlyAdmin { sender: Admin },
241241

242242
#[error("sender {sender} is not zkgm")]

cosmwasm/lst-staker/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

cosmwasm/lst-staker/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,10 @@ fn withdraw_all_rewards(
212212
}
213213

214214
#[entry_point]
215-
pub fn query(deps: Deps, _: Env, msg: QueryMsg) -> Result<Binary, ContractError> {
215+
pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> Result<Binary, ContractError> {
216216
match msg {
217217
QueryMsg::Validators {} => Ok(to_json_binary(&deps.storage.read_item::<Validators>()?)?),
218+
QueryMsg::CwAccount(msg) => Ok(cw_account::query(deps, env, msg)?),
218219
}
219220
}
220221

cosmwasm/lst-staker/src/msg.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ pub enum ExecuteMsg {
2020
#[serde(deny_unknown_fields, rename_all = "snake_case")]
2121
pub enum QueryMsg {
2222
Validators {},
23+
#[serde(untagged)]
24+
CwAccount(cw_account::msg::QueryMsg),
2325
}
2426

2527
#[derive(Debug, Serialize, Deserialize)]

0 commit comments

Comments
 (0)