Skip to content

Commit

Permalink
fix: Appease older TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Sep 18, 2024
1 parent 75e9ca7 commit 0701408
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/hardhat-core/scripts/console-library-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0701408

Please sign in to comment.