mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
Merge pull request #391 from oceanprotocol/feature/remove_blob_content
remove blob content
This commit is contained in:
commit
7339be69ec
@ -2,7 +2,6 @@ export interface DataTokenInfo {
|
|||||||
address: string
|
address: string
|
||||||
name: string
|
name: string
|
||||||
symbol: string
|
symbol: string
|
||||||
blob: string
|
|
||||||
decimals?: number
|
decimals?: number
|
||||||
totalSupply?: number
|
totalSupply?: number
|
||||||
cap?: number
|
cap?: number
|
||||||
|
@ -91,16 +91,9 @@ export class Assets extends Instantiable {
|
|||||||
if (!dtAddress) {
|
if (!dtAddress) {
|
||||||
this.logger.log('Creating datatoken')
|
this.logger.log('Creating datatoken')
|
||||||
observer.next(CreateProgressStep.CreatingDataToken)
|
observer.next(CreateProgressStep.CreatingDataToken)
|
||||||
const metadataCacheUri = this.ocean.metadatacache.getURI()
|
// const metadataCacheUri = this.ocean.metadatacache.getURI()
|
||||||
const jsonBlob = { t: 1, url: metadataCacheUri }
|
// const jsonBlob = { t: 1, url: metadataCacheUri }
|
||||||
|
dtAddress = await datatokens.create('', publisher.getId(), cap, name, symbol)
|
||||||
dtAddress = await datatokens.create(
|
|
||||||
JSON.stringify(jsonBlob),
|
|
||||||
publisher.getId(),
|
|
||||||
cap,
|
|
||||||
name,
|
|
||||||
symbol
|
|
||||||
)
|
|
||||||
|
|
||||||
if (!isAddress(dtAddress)) {
|
if (!isAddress(dtAddress)) {
|
||||||
this.logger.error(
|
this.logger.error(
|
||||||
@ -191,7 +184,6 @@ export class Assets extends Instantiable {
|
|||||||
name: await datatokens.getName(dtAddress),
|
name: await datatokens.getName(dtAddress),
|
||||||
symbol: await datatokens.getSymbol(dtAddress),
|
symbol: await datatokens.getSymbol(dtAddress),
|
||||||
address: dtAddress,
|
address: dtAddress,
|
||||||
blob: await datatokens.getBlob(dtAddress),
|
|
||||||
cap: parseFloat(await datatokens.getCap(dtAddress))
|
cap: parseFloat(await datatokens.getCap(dtAddress))
|
||||||
}
|
}
|
||||||
this.logger.log('Storing DDO')
|
this.logger.log('Storing DDO')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user