Skip to content

Commit a14903c

Browse files
authored
Merge pull request #307 from kodadot/main
🔖 Speck v14
2 parents b02dca6 + e4d91c2 commit a14903c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/mappings/nfts/create.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getOrCreate } from '@kodadot1/metasquid/entity'
22
import md5 from 'md5'
3-
import { CollectionEntity as CE } from '../../model'
3+
import { CollectionEntity as CE, Kind } from '../../model'
44
import { handleMetadata } from '../shared/metadata'
55
import { unwrap } from '../utils/extract'
66
import { debug, pending, success } from '../utils/logger'
@@ -50,6 +50,7 @@ export async function handleCollectionCreate(context: Context): Promise<void> {
5050
final.name = metadata?.name
5151
final.image = metadata?.image
5252
final.media = metadata?.animationUrl
53+
final.kind = metadata?.kind || Kind.mixed
5354
}
5455

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

src/mappings/uniques/create.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getOrCreate } from '@kodadot1/metasquid/entity'
22
import md5 from 'md5'
3-
import { CollectionEntity as CE } from '../../model'
3+
import { CollectionEntity as CE, Kind } from '../../model'
44
import { handleMetadata } from '../shared/metadata'
55
import { unwrap } from '../utils/extract'
66
import { debug, pending, success } from '../utils/logger'
@@ -50,6 +50,7 @@ export async function handleCollectionCreate(context: Context): Promise<void> {
5050
final.name = metadata?.name
5151
final.image = metadata?.image
5252
final.media = metadata?.animationUrl
53+
final.kind = metadata?.kind || Kind.mixed
5354
}
5455

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

0 commit comments

Comments
 (0)