Skip to content

Commit

Permalink
Merge pull request #391 from oceanprotocol/feature/remove_blob_content
Browse files Browse the repository at this point in the history
remove blob content
  • Loading branch information
kremalicious authored Oct 22, 2020
2 parents b8c0a9f + af28c19 commit 7339be6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/ddo/interfaces/DataTokenInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export interface DataTokenInfo {
address: string
name: string
symbol: string
blob: string
decimals?: number
totalSupply?: number
cap?: number
Expand Down
14 changes: 3 additions & 11 deletions src/ocean/Assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 7339be6

Please sign in to comment.