From c669089d3b2be3d304e1ef8ed1b6827c0cb75ec8 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 20 Feb 2020 16:11:28 +0100 Subject: [PATCH] update ocean.assets methods --- client/src/components/templates/Asset/AssetFile.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/src/components/templates/Asset/AssetFile.tsx b/client/src/components/templates/Asset/AssetFile.tsx index 3d9a9a3..d11a657 100644 --- a/client/src/components/templates/Asset/AssetFile.tsx +++ b/client/src/components/templates/Asset/AssetFile.tsx @@ -59,8 +59,6 @@ export default class AssetFile extends PureComponent< try { const accounts = await ocean.accounts.list() - const service = ddo.findServiceByType('access') - const agreements = await ocean.keeper.conditions.accessSecretStoreCondition.getGrantedDidByConsumer( accounts[0].id ) @@ -74,7 +72,7 @@ export default class AssetFile extends PureComponent< ;({ agreementId } = agreement) } else { agreementId = await ocean.assets - .order(ddo.id, service.index, accounts[0]) + .order(ddo.id, accounts[0]) .next((step: number) => this.setState({ step })) } @@ -84,7 +82,6 @@ export default class AssetFile extends PureComponent< const path = await ocean.assets.consume( agreementId, ddo.id, - service.index, accounts[0], '', index