From f7407fdc22531b0bb7a91d3d794a122a39191ef7 Mon Sep 17 00:00:00 2001 From: Patricio Palladino Date: Thu, 9 May 2024 19:09:17 +0000 Subject: [PATCH] fix compilation error --- .../src/internal/hardhat-network/stack-traces/source-maps.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/hardhat-core/src/internal/hardhat-network/stack-traces/source-maps.ts b/packages/hardhat-core/src/internal/hardhat-network/stack-traces/source-maps.ts index 15d77ab6b8..8ff03b3c73 100644 --- a/packages/hardhat-core/src/internal/hardhat-network/stack-traces/source-maps.ts +++ b/packages/hardhat-core/src/internal/hardhat-network/stack-traces/source-maps.ts @@ -75,13 +75,13 @@ function uncompressSourcemaps(compressedSourcemap: string): SourceMap[] { function addUnmappedInstructions( instructions: Instruction[], - bytecode: Buffer, + bytecode: Buffer ) { const lastInstrPc = instructions[instructions.length - 1].pc; let bytesIndex = lastInstrPc + 1; while (bytecode[bytesIndex] !== Opcode.INVALID) { - const opcode = bytecode[nextPc]; + const opcode = bytecode[bytesIndex]; let pushData: Buffer | undefined; let pushDataLenth = 0;