File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
packages/asset-ownership-service/src/services Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,11 @@ const RELEVANT_INSTRUCTIONS_REGEX = new RegExp(
45
45
"i"
46
46
) ;
47
47
48
+ type TreeUpdateInstructionName =
49
+ | "update_maker_tree_v0"
50
+ | "update_carrier_tree_v0"
51
+ | "update_data_only_tree_v0" ;
52
+
48
53
interface IOutputTransaction {
49
54
message : {
50
55
accountKeys : string [ ] ;
@@ -296,7 +301,8 @@ export const setupSubstream = async (server: FastifyInstance) => {
296
301
case "update_carrier_tree_v0" :
297
302
case "update_data_only_tree_v0" : {
298
303
await handleTreeUpdateInstruction ( {
299
- instructionName : decodedInstruction . name ,
304
+ instructionName :
305
+ decodedInstruction . name as TreeUpdateInstructionName ,
300
306
accountMap,
301
307
cursor,
302
308
blockHeight,
@@ -411,7 +417,7 @@ export const setupSubstream = async (server: FastifyInstance) => {
411
417
cursorManager,
412
418
database,
413
419
} : {
414
- instructionName : string ;
420
+ instructionName : TreeUpdateInstructionName ;
415
421
accountMap : Record < string , any > ;
416
422
cursor : string ;
417
423
blockHeight : string ;
You can’t perform that action at this time.
0 commit comments