1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00
This commit is contained in:
alexcos20 2020-03-25 14:07:51 +02:00
parent 58a1345e36
commit ee3529b4fe
2 changed files with 3 additions and 3 deletions

View File

@ -311,8 +311,8 @@ export class OceanAssets extends Instantiable {
* @return {Promise<string>} Returns Account ID
*/
public async owner(did: string): Promise<string> {
return await this.ocean.keeper.didRegistry.getDIDOwner(did)
const owner = await this.ocean.keeper.didRegistry.getDIDOwner(did)
return owner
}
/**

View File

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