|
@@ -276,11 +276,10 @@ export const getWorkerReward = (
|
|
export const getCouncilMint = (api: ApiPromise, hash: Hash): Promise<MintId> =>
|
|
export const getCouncilMint = (api: ApiPromise, hash: Hash): Promise<MintId> =>
|
|
api.query.council.councilMint.at(hash);
|
|
api.query.council.councilMint.at(hash);
|
|
|
|
|
|
-export const getGroupMint = (
|
|
|
|
|
|
+export const getGroupMint = async (
|
|
api: ApiPromise,
|
|
api: ApiPromise,
|
|
- group: string,
|
|
|
|
- hash: Hash
|
|
|
|
-): Promise<MintId> => api.query[group].mint.at(hash);
|
|
|
|
|
|
+ group: string
|
|
|
|
+): Promise<MintId> => (await api.query[group].mint()) as MintId;
|
|
|
|
|
|
export const getMintsCreated = async (
|
|
export const getMintsCreated = async (
|
|
api: ApiPromise,
|
|
api: ApiPromise,
|