From 07014087e9a8314aacddd7c3eb4ed1242d467172 Mon Sep 17 00:00:00 2001 From: Igor Matuszewski Date: Wed, 18 Sep 2024 18:51:05 +0200 Subject: [PATCH] fix: Appease older TypeScript --- packages/hardhat-core/scripts/console-library-generator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/hardhat-core/scripts/console-library-generator.ts b/packages/hardhat-core/scripts/console-library-generator.ts index 0aa935e848..a1e215d9e2 100644 --- a/packages/hardhat-core/scripts/console-library-generator.ts +++ b/packages/hardhat-core/scripts/console-library-generator.ts @@ -74,13 +74,13 @@ const CONSOLE_LOG_FUNCTIONS = // backwards-compatibility, e.g. logInt, logUint, logString, etc. .concat( SINGLE_TYPES.map((single) => { - const param = { ...single, name: "p0" } as const; + const param = { ...single, name: "p0" }; const nameSuffix = capitalize(param.type.replace("int256", "int")); return { name: `log${nameSuffix}`, params: [param], - } as const; + }; }) ) // Also generate the function definitions for `log` for permutations of