Skip to content

Commit

Permalink
Merge pull request #307 from kodadot/main
Browse files Browse the repository at this point in the history
🔖 Speck v14
  • Loading branch information
vikiival authored Sep 17, 2024
2 parents b02dca6 + e4d91c2 commit a14903c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/mappings/nfts/create.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getOrCreate } from '@kodadot1/metasquid/entity'
import md5 from 'md5'
import { CollectionEntity as CE } from '../../model'
import { CollectionEntity as CE, Kind } from '../../model'
import { handleMetadata } from '../shared/metadata'
import { unwrap } from '../utils/extract'
import { debug, pending, success } from '../utils/logger'
Expand Down Expand Up @@ -50,6 +50,7 @@ export async function handleCollectionCreate(context: Context): Promise<void> {
final.name = metadata?.name
final.image = metadata?.image
final.media = metadata?.animationUrl
final.kind = metadata?.kind || Kind.mixed
}

success(OPERATION, `[COLLECTION] ${final.id}`)
Expand Down
3 changes: 2 additions & 1 deletion src/mappings/uniques/create.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getOrCreate } from '@kodadot1/metasquid/entity'
import md5 from 'md5'
import { CollectionEntity as CE } from '../../model'
import { CollectionEntity as CE, Kind } from '../../model'
import { handleMetadata } from '../shared/metadata'
import { unwrap } from '../utils/extract'
import { debug, pending, success } from '../utils/logger'
Expand Down Expand Up @@ -50,6 +50,7 @@ export async function handleCollectionCreate(context: Context): Promise<void> {
final.name = metadata?.name
final.image = metadata?.image
final.media = metadata?.animationUrl
final.kind = metadata?.kind || Kind.mixed
}

success(OPERATION, `[COLLECTION] ${final.id}`)
Expand Down

0 comments on commit a14903c

Please sign in to comment.