1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00
This commit is contained in:
Ahmed Ali 2020-07-03 11:29:41 +02:00
parent 08c3da3edd
commit cd9f6295ed
6 changed files with 27906 additions and 13 deletions

View File

@ -167,18 +167,6 @@ export class Assets extends Instantiable {
})
}
/**
* Returns the owner of an asset.
* @param {string} did Decentralized ID.
* @return {Promise<string>} Returns Account ID
*/
public async owner(did: string): Promise<string> {
// TODO:
// const owner = await this.ocean.keeper.didRegistry.getDIDOwner(did)
// return owner
return ''
}
/**
* Returns the assets of a owner.
* @param {string} owner Owner address.

View File

@ -41,6 +41,7 @@ describe('Marketplace flow', () => {
ocean = await Ocean.getInstance(config)
owner = (await ocean.accounts.list())[0]
console.log(owner.getId())
alice = (await ocean.accounts.list())[1]
bob = (await ocean.accounts.list())[2]
marketplace = (await ocean.accounts.list())[3]
@ -57,7 +58,7 @@ describe('Marketplace flow', () => {
web3
)
tokenAddress = await datatoken.create(blob, alice.getId())
console.log(blob)
assert(tokenAddress != null)
})
it('Generates metadata', async () => {