mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
cleaning
This commit is contained in:
parent
08c3da3edd
commit
cd9f6295ed
@ -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.
|
* Returns the assets of a owner.
|
||||||
* @param {string} owner Owner address.
|
* @param {string} owner Owner address.
|
||||||
|
@ -41,6 +41,7 @@ describe('Marketplace flow', () => {
|
|||||||
|
|
||||||
ocean = await Ocean.getInstance(config)
|
ocean = await Ocean.getInstance(config)
|
||||||
owner = (await ocean.accounts.list())[0]
|
owner = (await ocean.accounts.list())[0]
|
||||||
|
console.log(owner.getId())
|
||||||
alice = (await ocean.accounts.list())[1]
|
alice = (await ocean.accounts.list())[1]
|
||||||
bob = (await ocean.accounts.list())[2]
|
bob = (await ocean.accounts.list())[2]
|
||||||
marketplace = (await ocean.accounts.list())[3]
|
marketplace = (await ocean.accounts.list())[3]
|
||||||
@ -57,7 +58,7 @@ describe('Marketplace flow', () => {
|
|||||||
web3
|
web3
|
||||||
)
|
)
|
||||||
tokenAddress = await datatoken.create(blob, alice.getId())
|
tokenAddress = await datatoken.create(blob, alice.getId())
|
||||||
console.log(blob)
|
assert(tokenAddress != null)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Generates metadata', async () => {
|
it('Generates metadata', async () => {
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user