From c32ec62c45dea9ce86b45ca0629f4161e3722cf5 Mon Sep 17 00:00:00 2001 From: Muhammad Altabba <24407834+Muhammad-Altabba@users.noreply.github.com> Date: Sun, 10 Dec 2023 14:57:02 +0100 Subject: [PATCH] fix: add lookupTypes to typegen imports --- packages/typegen/src/util/formatting.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/typegen/src/util/formatting.ts b/packages/typegen/src/util/formatting.ts index 9c6699231500..25ed32f3f805 100644 --- a/packages/typegen/src/util/formatting.ts +++ b/packages/typegen/src/util/formatting.ts @@ -37,7 +37,8 @@ function extractImports ({ imports, types }: This): string[] { ...Object.keys(imports.extrinsicTypes), ...Object.keys(imports.genericTypes), ...Object.keys(imports.metadataTypes), - ...Object.keys(imports.primitiveTypes) + ...Object.keys(imports.primitiveTypes), + ...Object.keys(imports.lookupTypes) ]; return [