Skip to content

Commit

Permalink
Fixed query.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Nov 16, 2023
1 parent 8a25e11 commit d9a6b23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data/formulas/contract/external/cw1Whitelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type AdminList = {
mutable: boolean
}

export const admins: ContractFormula<string[]> = {
export const adminList: ContractFormula<AdminList | undefined> = {
compute: async ({ contractAddress, get }) =>
(await get<AdminList>(contractAddress, 'admin_list'))?.admins ?? [],
await get<AdminList>(contractAddress, 'admin_list'),
}

0 comments on commit d9a6b23

Please sign in to comment.