Skip to content

Commit

Permalink
Update query admins response
Browse files Browse the repository at this point in the history
  • Loading branch information
MightOfOaks committed Jan 27, 2024
1 parent 06ef71a commit 70e39a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/whitelist-updatable-flatrate/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,13 @@ pub fn query_mint_count(deps: Deps, address: String) -> StdResult<u32> {
WHITELIST.load(deps.storage, addr)
}

pub fn query_admins(deps: Deps) -> StdResult<String> {
pub fn query_admins(deps: Deps) -> StdResult<Vec<String>> {
let config = CONFIG.load(deps.storage)?;
Ok(config
.admins
.into_iter()
.iter()
.map(|x| x.to_string())
.collect::<String>())
.collect::<Vec<String>>())
}

pub fn query_address_count(deps: Deps) -> StdResult<u64> {
Expand Down

0 comments on commit 70e39a4

Please sign in to comment.