Explorar o código

getGroupMint requires no hash

Joystream Stats %!s(int64=3) %!d(string=hai) anos
pai
achega
b66ce13290
Modificáronse 1 ficheiros con 3 adicións e 4 borrados
  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,