浏览代码

getGroupMint requires no hash

Joystream Stats 3 年之前
父节点
当前提交
b66ce13290
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      api.ts

+ 3 - 4
api.ts

@@ -276,11 +276,10 @@ export const getWorkerReward = (
 export const getCouncilMint = (api: ApiPromise, hash: Hash): Promise<MintId> =>
   api.query.council.councilMint.at(hash);
 
-export const getGroupMint = (
+export const getGroupMint = async (
   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 (
   api: ApiPromise,