From 02c36d12ad7b0165979fac0ecd4f8dfb38c9c6b5 Mon Sep 17 00:00:00 2001 From: Sebastian Gerske Date: Fri, 16 Nov 2018 14:26:58 +0100 Subject: [PATCH] fix issue with generating public key, adapt interface changes of aquarius --- src/ocean/Ocean.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ocean/Ocean.ts b/src/ocean/Ocean.ts index 9d2bbb5..26d414a 100644 --- a/src/ocean/Ocean.ts +++ b/src/ocean/Ocean.ts @@ -105,7 +105,7 @@ export default class Ocean { owner: did, }, { - publicKeyBase58: publisher.getPublicKey(), + publicKeyBase58: await publisher.getPublicKey(), }, ], service: [ @@ -121,14 +121,14 @@ export default class Ocean { conditions: ddoConditions, } as Service, { + type: "Compute", serviceEndpoint: brizo.getComputeEndpoint(publisher.getId(), serviceDefinitionId, "xxx", "xxx"), - type: "Compute", } as Service, { type: "Metadata", - metadata, serviceEndpoint, + metadata, } as Service, ], })