1
0
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:
Matthias Kretschmann 2020-10-22 10:23:38 +02:00 committed by GitHub
commit 7339be69ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 12 deletions

View File

@ -2,7 +2,6 @@ export interface DataTokenInfo {
address: string
name: string
symbol: string
blob: string
decimals?: number
totalSupply?: number
cap?: number

View File

@ -91,16 +91,9 @@ export class Assets extends Instantiable {
if (!dtAddress) {
this.logger.log('Creating datatoken')
observer.next(CreateProgressStep.CreatingDataToken)
const metadataCacheUri = this.ocean.metadatacache.getURI()
const jsonBlob = { t: 1, url: metadataCacheUri }
dtAddress = await datatokens.create(
JSON.stringify(jsonBlob),
publisher.getId(),
cap,
name,
symbol
)
// const metadataCacheUri = this.ocean.metadatacache.getURI()
// const jsonBlob = { t: 1, url: metadataCacheUri }
dtAddress = await datatokens.create('', publisher.getId(), cap, name, symbol)
if (!isAddress(dtAddress)) {
this.logger.error(
@ -191,7 +184,6 @@ export class Assets extends Instantiable {
name: await datatokens.getName(dtAddress),
symbol: await datatokens.getSymbol(dtAddress),
address: dtAddress,
blob: await datatokens.getBlob(dtAddress),
cap: parseFloat(await datatokens.getCap(dtAddress))
}
this.logger.log('Storing DDO')