@@ -115,7 +115,7 @@ export function handleSetGlobalMinter(
115
115
116
116
if ( ! collection ) {
117
117
console . log (
118
- `Error : Collection not found in handleSetGlobalMinter: ${ collectionAddress } `
118
+ `ERROR : Collection not found in handleSetGlobalMinter: ${ collectionAddress } `
119
119
) ;
120
120
return ;
121
121
}
@@ -147,7 +147,7 @@ export function handleSetGlobalMinter(
147
147
item . firstListedAt = BigInt ( block . timestamp / 1000 ) ;
148
148
}
149
149
} else {
150
- console . log ( `Item not found: ${ itemId } ` ) ;
150
+ console . log ( `ERROR: Item not found: ${ itemId } ` ) ;
151
151
}
152
152
}
153
153
}
@@ -180,7 +180,7 @@ export function handleSetGlobalMinter(
180
180
// set flag only if store is item minter, otherwise unset it
181
181
item . searchIsStoreMinter = isStoreItemMinter ;
182
182
} else {
183
- console . log ( `Item not found: ${ itemId } ` ) ;
183
+ console . log ( `ERROR: Item not found: ${ itemId } ` ) ;
184
184
}
185
185
}
186
186
}
@@ -199,7 +199,7 @@ export function handleSetGlobalManager(
199
199
200
200
if ( ! collection ) {
201
201
console . log (
202
- `Error : Collection not found in handleSetGlobalManager: ${ collectionAddress } `
202
+ `ERROR : Collection not found in handleSetGlobalManager: ${ collectionAddress } `
203
203
) ;
204
204
return ;
205
205
}
@@ -237,7 +237,7 @@ export function handleSetItemMinter(
237
237
238
238
const item = items . get ( id ) ;
239
239
if ( ! item ) {
240
- console . log ( `Error : Item not found in handleSetItemMinter: ${ id } ` ) ;
240
+ console . log ( `ERROR : Item not found in handleSetItemMinter: ${ id } ` ) ;
241
241
return ;
242
242
}
243
243
@@ -261,7 +261,7 @@ export function handleSetItemMinter(
261
261
const collection = collections . get ( item . collection . id ) ;
262
262
if ( ! collection ) {
263
263
console . log (
264
- `Error : Collection not found in handleSetItemMinter: ${ item . collection . id } `
264
+ `ERROR : Collection not found in handleSetItemMinter: ${ item . collection . id } `
265
265
) ;
266
266
}
267
267
if (
@@ -285,7 +285,7 @@ export function handleSetItemManager(
285
285
286
286
let item = items . get ( id ) ;
287
287
if ( ! item ) {
288
- console . log ( `Error : Item not found in handleSetItemManager: ${ id } ` ) ;
288
+ console . log ( `ERROR : Item not found in handleSetItemManager: ${ id } ` ) ;
289
289
return ;
290
290
}
291
291
@@ -334,7 +334,7 @@ export async function handleAddItem(
334
334
// Skip it, collection will be set up once the proxy event is created
335
335
// The ProxyCreated event is emitted right after the collection's event
336
336
console . log (
337
- `Error : Collection not found in handleAddItem: ${ collectionAddress } `
337
+ `ERROR : Collection not found in handleAddItem: ${ collectionAddress } `
338
338
) ;
339
339
return ;
340
340
}
@@ -357,18 +357,18 @@ export async function handleAddItem(
357
357
const rarity = rarities . get ( contractItem . rarity ) ;
358
358
// console.log("rarity inside Add Item: ", rarity);
359
359
if ( ! rarity ) {
360
- console . log ( `Error : Rarity not found: ${ contractItem . rarity } ` ) ;
360
+ console . log ( `ERROR : Rarity not found: ${ contractItem . rarity } ` ) ;
361
361
// return;
362
362
}
363
363
364
364
let creationFee = BigInt ( 0 ) ;
365
365
366
366
if ( ! rarity ) {
367
- console . log ( "Undefined rarity {} for collection {} and item {}" , [
368
- contractItem . rarity ,
369
- collectionAddress ,
370
- itemId . toString ( ) ,
371
- ] ) ;
367
+ console . log (
368
+ `ERROR: Undefined rarity ${
369
+ contractItem . rarity
370
+ } for collection ${ collectionAddress } and item ${ itemId . toString ( ) } `
371
+ ) ;
372
372
} else {
373
373
creationFee = rarity . price ;
374
374
@@ -707,7 +707,7 @@ export function handleSetApproved(
707
707
708
708
if ( ! collection ) {
709
709
console . log (
710
- `Error : Collection not found in handleSetApproved: ${ collectionAddress } `
710
+ `ERROR : Collection not found in handleSetApproved: ${ collectionAddress } `
711
711
) ;
712
712
return ;
713
713
}
@@ -805,7 +805,7 @@ export function handleSetEditable(
805
805
collection . isEditable = event . _newValue ;
806
806
} else {
807
807
console . log (
808
- `Error : Collection not found in handleSetEditable: ${ collectionAddress } `
808
+ `ERROR : Collection not found in handleSetEditable: ${ collectionAddress } `
809
809
) ;
810
810
}
811
811
}
@@ -820,7 +820,7 @@ export function handleCompleteCollection(
820
820
collection . isCompleted = true ;
821
821
} else {
822
822
console . log (
823
- `Error : Collection not found in handleCompleteCollection: ${ collectionAddress } `
823
+ `ERROR : Collection not found in handleCompleteCollection: ${ collectionAddress } `
824
824
) ;
825
825
}
826
826
}
@@ -852,7 +852,7 @@ export function handleTransferCreatorship(
852
852
}
853
853
} else {
854
854
console . log (
855
- `Error : Collection not found in handleTransferCreatorship: ${ collectionAddress } `
855
+ `ERROR : Collection not found in handleTransferCreatorship: ${ collectionAddress } `
856
856
) ;
857
857
}
858
858
}
@@ -868,7 +868,7 @@ export function handleTransferOwnership(
868
868
collection . owner = event . newOwner ;
869
869
} else {
870
870
console . log (
871
- `Error : Collection not found in handleTransferOwnership: ${ collectionAddress } `
871
+ `ERROR : Collection not found in handleTransferOwnership: ${ collectionAddress } `
872
872
) ;
873
873
}
874
874
}
0 commit comments