File tree 2 files changed +14
-2
lines changed
packages/hardhat-core/src/internal/hardhat-network/provider
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -208,14 +208,25 @@ export function edrRpcDebugTraceToHardhat(
208
208
export function edrTracingStepToMinimalInterpreterStep (
209
209
step : TracingStep
210
210
) : MinimalInterpreterStep {
211
- return {
211
+ const minimalInterpreterStep : MinimalInterpreterStep = {
212
212
pc : Number ( step . pc ) ,
213
213
depth : step . depth ,
214
214
opcode : {
215
215
name : step . opcode ,
216
216
} ,
217
- stack : step . stackTop !== undefined ? [ step . stackTop ] : [ ] ,
217
+ stack :
218
+ step . stack !== undefined
219
+ ? step . stack
220
+ : step . stackTop !== undefined
221
+ ? [ step . stackTop ]
222
+ : [ ] ,
218
223
} ;
224
+
225
+ if ( step . memory !== undefined ) {
226
+ minimalInterpreterStep . memory = step . memory ;
227
+ }
228
+
229
+ return minimalInterpreterStep ;
219
230
}
220
231
221
232
export function edrTracingMessageResultToMinimalEVMResult (
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export interface MinimalInterpreterStep {
12
12
name : string ;
13
13
} ;
14
14
stack : bigint [ ] ;
15
+ memory ?: Uint8Array ;
15
16
}
16
17
17
18
export interface MinimalExecResult {
You can’t perform that action at this time.
0 commit comments