From 70e39a4cde25d1109654e8cc17b3bb00fcede910 Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Sat, 27 Jan 2024 16:25:25 +0300 Subject: [PATCH] Update query admins response --- contracts/whitelist-updatable-flatrate/src/contract.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/whitelist-updatable-flatrate/src/contract.rs b/contracts/whitelist-updatable-flatrate/src/contract.rs index b04b441b..0e482eb8 100644 --- a/contracts/whitelist-updatable-flatrate/src/contract.rs +++ b/contracts/whitelist-updatable-flatrate/src/contract.rs @@ -303,13 +303,13 @@ pub fn query_mint_count(deps: Deps, address: String) -> StdResult { WHITELIST.load(deps.storage, addr) } -pub fn query_admins(deps: Deps) -> StdResult { +pub fn query_admins(deps: Deps) -> StdResult> { let config = CONFIG.load(deps.storage)?; Ok(config .admins - .into_iter() + .iter() .map(|x| x.to_string()) - .collect::()) + .collect::>()) } pub fn query_address_count(deps: Deps) -> StdResult {