1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

fix asset.owner to get owner from chain

This commit is contained in:
alexcos20 2020-03-25 11:57:50 +02:00
parent 204c5645b8
commit 58a1345e36

View File

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