diff --git a/src/routes/Details.tsx b/src/routes/Details.tsx index 7267991..4bbb1aa 100644 --- a/src/routes/Details.tsx +++ b/src/routes/Details.tsx @@ -30,17 +30,16 @@ export default class Details extends Component { try { const account = await this.context.ocean.getAccounts() const service = ddo.findServiceByType('Access') - const serviceAgreementSignatureResult: any = await this.context.ocean.signServiceAgreement( + const serviceAgreementSignatureResult = await this.context.ocean.signServiceAgreement( ddo.id, service.serviceDefinitionId, account[0] ) - Logger.log(service) await this.context.ocean.initializeServiceAgreement( ddo.id, service.serviceDefinitionId, - serviceAgreementSignatureResult.serviceAgreementId, - serviceAgreementSignatureResult.serviceAgreementSignature, + serviceAgreementSignatureResult.agreementId, + serviceAgreementSignatureResult.signature, (files: any) => { Logger.log('downloading files', files) files.forEach((file: any) => {