@@ -87,6 +87,14 @@ export const DEFAULT_EAS_SCHEMA: TicketSchema = {
87
87
] ,
88
88
}
89
89
90
+ export const DEFAULT_SCHEMA_UIDS = [
91
+ '0x0000000000000000000000000000000000000000000000000000000000000000' ,
92
+ // string eventId,string ticketId,uint8 ticketClass,bytes commitment
93
+ '0x7f6fb09beb1886d0b223e9f15242961198dd360021b2c9f75ac879c0f786cafd' ,
94
+ // string devconId,string ticketIdString,uint8 ticketClass,bytes commitment
95
+ '0x0630f3342772bf31b669bdbc05af0e9e986cf16458f292dfd3b57564b3dc3247' ,
96
+ ]
97
+
90
98
export class TicketStorage {
91
99
private ticketCollections : TicketStorageSchema = { }
92
100
@@ -332,13 +340,7 @@ export class TicketStorage {
332
340
333
341
let idFields : string [ ] | undefined
334
342
335
- if (
336
- schemaUid !== '0x0000000000000000000000000000000000000000000000000000000000000000' &&
337
- // string eventId,string ticketId,uint8 ticketClass,bytes commitment
338
- schemaUid !== '0x7f6fb09beb1886d0b223e9f15242961198dd360021b2c9f75ac879c0f786cafd' &&
339
- // string devconId,string ticketIdString,uint8 ticketClass,bytes commitment
340
- schemaUid !== '0x0630f3342772bf31b669bdbc05af0e9e986cf16458f292dfd3b57564b3dc3247'
341
- ) {
343
+ if ( DEFAULT_SCHEMA_UIDS . indexOf ( schemaUid ) === - 1 ) {
342
344
let issuerConfig
343
345
344
346
// Once we have decoded the URL, we have a schema ID
0 commit comments