Skip to content

Commit 5cfbb2a

Browse files
committed
fix build issues
1 parent 3847f05 commit 5cfbb2a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/asset-ownership-service/src/services/substream.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ const RELEVANT_INSTRUCTIONS_REGEX = new RegExp(
4545
"i"
4646
);
4747

48+
type TreeUpdateInstructionName =
49+
| "update_maker_tree_v0"
50+
| "update_carrier_tree_v0"
51+
| "update_data_only_tree_v0";
52+
4853
interface IOutputTransaction {
4954
message: {
5055
accountKeys: string[];
@@ -296,7 +301,8 @@ export const setupSubstream = async (server: FastifyInstance) => {
296301
case "update_carrier_tree_v0":
297302
case "update_data_only_tree_v0": {
298303
await handleTreeUpdateInstruction({
299-
instructionName: decodedInstruction.name,
304+
instructionName:
305+
decodedInstruction.name as TreeUpdateInstructionName,
300306
accountMap,
301307
cursor,
302308
blockHeight,
@@ -411,7 +417,7 @@ export const setupSubstream = async (server: FastifyInstance) => {
411417
cursorManager,
412418
database,
413419
}: {
414-
instructionName: string;
420+
instructionName: TreeUpdateInstructionName;
415421
accountMap: Record<string, any>;
416422
cursor: string;
417423
blockHeight: string;

0 commit comments

Comments
 (0)