mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
fix ocean.assets.ownerAssets() response type
This commit is contained in:
parent
fb20a76e45
commit
19e4e584a8
@ -11,7 +11,7 @@ import {
|
|||||||
import { EditableMetadata } from '../ddo/interfaces/EditableMetadata'
|
import { EditableMetadata } from '../ddo/interfaces/EditableMetadata'
|
||||||
import Account from './Account'
|
import Account from './Account'
|
||||||
import DID from './DID'
|
import DID from './DID'
|
||||||
import { SubscribablePromise, didZeroX } from '../utils'
|
import { SubscribablePromise } from '../utils'
|
||||||
import { Instantiable, InstantiableConfig } from '../Instantiable.abstract'
|
import { Instantiable, InstantiableConfig } from '../Instantiable.abstract'
|
||||||
import { WebServiceConnector } from './utils/WebServiceConnector'
|
import { WebServiceConnector } from './utils/WebServiceConnector'
|
||||||
import BigNumber from 'bignumber.js'
|
import BigNumber from 'bignumber.js'
|
||||||
@ -205,7 +205,7 @@ export class Assets extends Instantiable {
|
|||||||
* @param {string} owner Owner address.
|
* @param {string} owner Owner address.
|
||||||
* @return {Promise<string[]>} List of DIDs.
|
* @return {Promise<string[]>} List of DIDs.
|
||||||
*/
|
*/
|
||||||
public async ownerAssets(owner: string): Promise<DDO[]> {
|
public async ownerAssets(owner: string): Promise<QueryResult> {
|
||||||
return this.ocean.metadatastore.getOwnerAssets(owner)
|
return this.ocean.metadatastore.getOwnerAssets(owner)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user