File tree 1 file changed +3
-3
lines changed
packages/hardhat-core/test/internal/hardhat-network/stack-traces
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -544,16 +544,14 @@ async function runTest(
544
544
) ;
545
545
}
546
546
547
- compareConsoleLogs ( logger . lines , tx . consoleLogs ) ;
548
-
549
547
const vmTraceDecoder = ( provider as any ) . _vmTraceDecoder as VmTraceDecoder ;
550
548
const decodedTrace = vmTraceDecoder . tryToDecodeMessageTrace ( trace ) ;
551
549
552
550
try {
553
551
if ( tx . stackTrace === undefined ) {
554
552
assert . isFalse (
555
553
trace . exit . isError ( ) ,
556
- `Transaction ${ txIndex } shouldn't have failed`
554
+ `Transaction ${ txIndex } shouldn't have failed ( ${ trace . exit . getReason ( ) } ) `
557
555
) ;
558
556
} else {
559
557
assert . isDefined (
@@ -588,6 +586,8 @@ async function runTest(
588
586
throw err ;
589
587
}
590
588
}
589
+
590
+ compareConsoleLogs ( logger . lines , tx . consoleLogs ) ;
591
591
}
592
592
}
593
593
You can’t perform that action at this time.
0 commit comments