Skip to content

Commit 5b410f9

Browse files
committed
fixup: Reword some vars
1 parent 0701408 commit 5b410f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,15 @@ const loggerFile = `\
184184
// scripts/console-library-generator.ts
185185
// ------------------------------------
186186
187-
${Array.from(SINGLE_TYPES.map((t) => capitalize(t.type)))
188-
.map((t) => `export const ${t}Ty = "${t}";`)
187+
${Array.from(SINGLE_TYPES.map((param) => capitalize(param.type)))
188+
.map((type) => `export const ${type}Ty = "${type}";`)
189189
.join("\n")}
190190
191191
/** Maps from a 4-byte function selector to a signature (argument types) */
192192
export const CONSOLE_LOG_SIGNATURES: Record<number, string[]> = {
193193
${Array.from(CONSOLE_LOG_SIGNATURES)
194194
.map(([sig, types]) => {
195-
const typeNames = types.map((t) => `${capitalize(t)}Ty`).join(", ");
195+
const typeNames = types.map((type) => `${capitalize(type)}Ty`).join(", ");
196196
return ` ${sig}: [${typeNames}],`;
197197
})
198198
.join("\n")}

0 commit comments

Comments
 (0)