Skip to content

Commit 0701408

Browse files
committed
fix: Appease older TypeScript
1 parent 75e9ca7 commit 0701408

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/hardhat-core/scripts/console-library-generator.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ const CONSOLE_LOG_FUNCTIONS =
7474
// backwards-compatibility, e.g. logInt, logUint, logString, etc.
7575
.concat(
7676
SINGLE_TYPES.map((single) => {
77-
const param = { ...single, name: "p0" } as const;
77+
const param = { ...single, name: "p0" };
7878
const nameSuffix = capitalize(param.type.replace("int256", "int"));
7979

8080
return {
8181
name: `log${nameSuffix}`,
8282
params: [param],
83-
} as const;
83+
};
8484
})
8585
)
8686
// Also generate the function definitions for `log` for permutations of

0 commit comments

Comments
 (0)