From ee3529b4fe4aad40e6f32e2960cdad25feb61a34 Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Wed, 25 Mar 2020 14:07:51 +0200 Subject: [PATCH] fix --- src/ocean/OceanAssets.ts | 4 ++-- test/integration/ocean/AssetOwners.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ocean/OceanAssets.ts b/src/ocean/OceanAssets.ts index 7faaf3c..719d362 100644 --- a/src/ocean/OceanAssets.ts +++ b/src/ocean/OceanAssets.ts @@ -311,8 +311,8 @@ export class OceanAssets extends Instantiable { * @return {Promise} Returns Account ID */ public async owner(did: string): Promise { - return await this.ocean.keeper.didRegistry.getDIDOwner(did) - + const owner = await this.ocean.keeper.didRegistry.getDIDOwner(did) + return owner } /** diff --git a/test/integration/ocean/AssetOwners.test.ts b/test/integration/ocean/AssetOwners.test.ts index 22fd0e7..e20d739 100644 --- a/test/integration/ocean/AssetOwners.test.ts +++ b/test/integration/ocean/AssetOwners.test.ts @@ -75,7 +75,7 @@ describe('Asset Owners', () => { const { length: initialLength } = await ocean.assets.consumerAssets( account2.getId() ) - + const ddo = await ocean.assets.create(metadata as any, account1) const { length: finalLength1 } = await ocean.assets.consumerAssets( account2.getId()