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()