Add empty brackets to GetAllSetoffs query (#182)
This commit is contained in:
parent
1a2ab7d008
commit
53c10273fa
2 changed files with 2 additions and 2 deletions
|
@ -337,7 +337,7 @@ pub mod execute {
|
||||||
#[cfg_attr(not(feature = "library"), entry_point)]
|
#[cfg_attr(not(feature = "library"), entry_point)]
|
||||||
pub fn query(deps: Deps, _env: Env, msg: QueryMsg) -> StdResult<Binary> {
|
pub fn query(deps: Deps, _env: Env, msg: QueryMsg) -> StdResult<Binary> {
|
||||||
match msg {
|
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 } => {
|
QueryMsg::GetLiquiditySources { epoch } => {
|
||||||
to_json_binary(&query::get_liquidity_sources(deps, epoch)?)
|
to_json_binary(&query::get_liquidity_sources(deps, epoch)?)
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,7 +138,7 @@ pub mod execute {
|
||||||
#[derive(QueryResponses)]
|
#[derive(QueryResponses)]
|
||||||
pub enum QueryMsg {
|
pub enum QueryMsg {
|
||||||
#[returns(GetAllSetoffsResponse)]
|
#[returns(GetAllSetoffsResponse)]
|
||||||
GetAllSetoffs,
|
GetAllSetoffs {},
|
||||||
#[returns(GetLiquiditySourcesResponse)]
|
#[returns(GetLiquiditySourcesResponse)]
|
||||||
GetLiquiditySources { epoch: Option<Uint64> }, // `None` means latest
|
GetLiquiditySources { epoch: Option<Uint64> }, // `None` means latest
|
||||||
#[returns(cw20::BalanceResponse)]
|
#[returns(cw20::BalanceResponse)]
|
||||||
|
|
Loading…
Reference in a new issue