From a0d10aec7aa3cab5a9c2fc7740a9e7eeaca943e1 Mon Sep 17 00:00:00 2001 From: emretepedev Date: Sat, 24 Dec 2022 01:59:41 +0300 Subject: [PATCH] fix: get type check error when runOnCompile is enabled --- src/tasks/compile.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tasks/compile.ts b/src/tasks/compile.ts index 81cd0cc..6663592 100644 --- a/src/tasks/compile.ts +++ b/src/tasks/compile.ts @@ -20,8 +20,11 @@ export const finderCompileAction: ActionType = async ( path: config.finder.contract.path, name: config.finder.contract.name, outputs: config.finder.outputs, - depth: config.finder.depth, - maxStringLength: config.finder.maxStringLength, + depth: config.finder.depth === Infinity ? undefined : config.finder.depth, + maxStringLength: + config.finder.maxStringLength === Infinity + ? undefined + : config.finder.maxStringLength, includeDependencies: config.finder.includeDependencies, colorify: config.finder.colorify, prettify: config.finder.prettify,