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:
parent
204c5645b8
commit
58a1345e36
@ -311,8 +311,8 @@ export class OceanAssets extends Instantiable {
|
||||
* @return {Promise<string>} Returns Account ID
|
||||
*/
|
||||
public async owner(did: string): Promise<string> {
|
||||
const ddo = await this.resolve(did)
|
||||
return ddo.publicKey[0].owner
|
||||
return await this.ocean.keeper.didRegistry.getDIDOwner(did)
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user