Skip to content

Commit

Permalink
fixup: Reword some vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Sep 18, 2024
1 parent 0701408 commit 5b410f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/hardhat-core/scripts/console-library-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,15 @@ const loggerFile = `\
// scripts/console-library-generator.ts
// ------------------------------------
${Array.from(SINGLE_TYPES.map((t) => capitalize(t.type)))
.map((t) => `export const ${t}Ty = "${t}";`)
${Array.from(SINGLE_TYPES.map((param) => capitalize(param.type)))
.map((type) => `export const ${type}Ty = "${type}";`)
.join("\n")}
/** Maps from a 4-byte function selector to a signature (argument types) */
export const CONSOLE_LOG_SIGNATURES: Record<number, string[]> = {
${Array.from(CONSOLE_LOG_SIGNATURES)
.map(([sig, types]) => {
const typeNames = types.map((t) => `${capitalize(t)}Ty`).join(", ");
const typeNames = types.map((type) => `${capitalize(type)}Ty`).join(", ");
return ` ${sig}: [${typeNames}],`;
})
.join("\n")}
Expand Down

0 comments on commit 5b410f9

Please sign in to comment.