From 58a1345e362ccc1fe13b292b4b0e30f5840c9051 Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Wed, 25 Mar 2020 11:57:50 +0200 Subject: [PATCH] fix asset.owner to get owner from chain --- src/ocean/OceanAssets.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ocean/OceanAssets.ts b/src/ocean/OceanAssets.ts index 6c74b62..7faaf3c 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 { - const ddo = await this.resolve(did) - return ddo.publicKey[0].owner + return await this.ocean.keeper.didRegistry.getDIDOwner(did) + } /**