From 34745f3b667e9d89886d90f26569a7ef426be215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Guti=C3=A9rrez?= Date: Fri, 8 Feb 2019 12:03:05 +0100 Subject: [PATCH] small changes --- library.json | 2 +- src/ocean/OceanAssets.ts | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/library.json b/library.json index 15ab110..3a990ce 100644 --- a/library.json +++ b/library.json @@ -7,7 +7,7 @@ "dependencies": [ { "name": "keeper-contracts", - "version": "~0.6.11" + "version": "~0.6.12" }, { "name": "brizo", diff --git a/src/ocean/OceanAssets.ts b/src/ocean/OceanAssets.ts index f9e6d32..b0e418f 100644 --- a/src/ocean/OceanAssets.ts +++ b/src/ocean/OceanAssets.ts @@ -66,10 +66,8 @@ export default class OceanAssets { const computeServiceDefintionId: string = "1" const metadataServiceDefinitionId: string = "2" - metadata.base.encryptedFiles = [ - await SecretStoreProvider.getSecretStore() - .encryptDocument(did.getId(), metadata.base.files), - ] + metadata.base.encryptedFiles = await SecretStoreProvider.getSecretStore() + .encryptDocument(did.getId(), metadata.base.files) const template = new Access() const serviceAgreementTemplate = new ServiceAgreementTemplate(template)