Skip to content
This repository has been archived by the owner on Oct 27, 2020. It is now read-only.

Commit

Permalink
update ocean.assets methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kremalicious committed Feb 20, 2020
1 parent e81c196 commit c669089
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/src/components/templates/Asset/AssetFile.tsx
Expand Up @@ -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
)
Expand All @@ -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 }))
}

Expand All @@ -84,7 +82,6 @@ export default class AssetFile extends PureComponent<
const path = await ocean.assets.consume(
agreementId,
ddo.id,
service.index,
accounts[0],
'',
index
Expand Down

0 comments on commit c669089

Please sign in to comment.