From d0d7866ad9380836b07df9b9596f6d66f2188641 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 9 Oct 2020 20:29:20 +0200 Subject: [PATCH] pass through mpAddress --- src/hooks/useConsume/useConsume.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/hooks/useConsume/useConsume.ts b/src/hooks/useConsume/useConsume.ts index 3aed28c..1450924 100644 --- a/src/hooks/useConsume/useConsume.ts +++ b/src/hooks/useConsume/useConsume.ts @@ -8,7 +8,8 @@ interface UseConsume { consume: ( did: DID | string, dataTokenAddress: string, - serviceType: ServiceType + serviceType: ServiceType, + marketFeeAddress: string ) => Promise consumeStep?: number consumeStepText?: string @@ -39,7 +40,8 @@ function useConsume(): UseConsume { async function consume( did: DID | string, dataTokenAddress: string, - serviceType: ServiceType = 'access' + serviceType: ServiceType = 'access', + marketFeeAddress: string ): Promise { if (!ocean || !account || !accountId) return setIsLoading(true) @@ -53,7 +55,9 @@ function useConsume(): UseConsume { const tokenTransfer = await ocean.assets.order( did as string, serviceType, - accountId + accountId, + undefined, + marketFeeAddress ) Logger.log('order created', tokenTransfer) setStep(2)