Commit edb9f78 1 parent e0bfe7e commit edb9f78 Copy full SHA for edb9f78
File tree 2 files changed +9
-0
lines changed
packages/hardhat-core/src/internal/hardhat-network/provider
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -243,6 +243,14 @@ export function edrTracingMessageResultToMinimalEVMResult(
243
243
if ( "reason" in result ) {
244
244
minimalEVMResult . execResult . reason = result . reason ;
245
245
}
246
+ if ( "output" in result ) {
247
+ const { output } = result ;
248
+ if ( Buffer . isBuffer ( output ) ) {
249
+ minimalEVMResult . execResult . output = output ;
250
+ } else {
251
+ minimalEVMResult . execResult . output = output . returnValue ;
252
+ }
253
+ }
246
254
247
255
if ( contractAddress !== undefined ) {
248
256
minimalEVMResult . execResult . contractAddress = new Address ( contractAddress ) ;
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export interface MinimalExecResult {
21
21
executionGasUsed : bigint ;
22
22
contractAddress ?: Address ;
23
23
reason ?: SuccessReason | ExceptionalHalt ;
24
+ output ?: Buffer ;
24
25
}
25
26
26
27
export interface MinimalEVMResult {
You can’t perform that action at this time.
0 commit comments