Add empty brackets to GetAllSetoffs query (#182)

This commit is contained in:
Elena San Miguel 2024-09-05 19:05:16 +02:00 committed by GitHub
parent 1a2ab7d008
commit 53c10273fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -337,7 +337,7 @@ pub mod execute {
#[cfg_attr(not(feature = "library"), entry_point)]
pub fn query(deps: Deps, _env: Env, msg: QueryMsg) -> StdResult<Binary> {
match msg {
QueryMsg::GetAllSetoffs => to_json_binary(&query::get_all_setoffs(deps)?),
QueryMsg::GetAllSetoffs {} => to_json_binary(&query::get_all_setoffs(deps)?),
QueryMsg::GetLiquiditySources { epoch } => {
to_json_binary(&query::get_liquidity_sources(deps, epoch)?)
}

View file

@ -138,7 +138,7 @@ pub mod execute {
#[derive(QueryResponses)]
pub enum QueryMsg {
#[returns(GetAllSetoffsResponse)]
GetAllSetoffs,
GetAllSetoffs {},
#[returns(GetLiquiditySourcesResponse)]
GetLiquiditySources { epoch: Option<Uint64> }, // `None` means latest
#[returns(cw20::BalanceResponse)]