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
487b430546
commit
353fb4751e
@ -44,18 +44,6 @@ export class Assets extends Instantiable {
|
||||
return instance
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a simple asset and a datatoken
|
||||
* @param {Account} publisher Publisher account.
|
||||
* @return {Promise<String>}
|
||||
*/
|
||||
public createSimpleAsset(publisher: Account): Promise<string> {
|
||||
const publisherURI = this.ocean.provider.getURI()
|
||||
const jsonBlob = { t: 0, url: publisherURI }
|
||||
const { datatokens } = this.ocean
|
||||
return datatokens.create(JSON.stringify(jsonBlob), publisher)
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new DDO and publishes it
|
||||
* @param {Metadata} metadata DDO metadata.
|
||||
@ -370,7 +358,7 @@ export class Assets extends Instantiable {
|
||||
datePublished,
|
||||
cost: dtCost,
|
||||
timeout: timeout,
|
||||
name: 'dataAssetAccessServiceAgreement'
|
||||
name: 'dataAssetAccess'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user