@@ -6,7 +6,7 @@ import { EdrProviderWrapper } from "hardhat/internal/hardhat-network/provider/pr
6
6
import { ReturnData } from "hardhat/internal/hardhat-network/provider/return-data" ;
7
7
import {
8
8
ConsoleLogs ,
9
- consoleLogToString ,
9
+ ConsoleLogger ,
10
10
} from "hardhat/internal/hardhat-network/stack-traces/consoleLogger" ;
11
11
import {
12
12
printMessageTrace ,
@@ -93,7 +93,7 @@ interface DeploymentTransaction {
93
93
} ;
94
94
stackTrace ?: StackFrameDescription [ ] ; // No stack trace === the tx MUST be successful
95
95
imports ?: string [ ] ; // Imports needed for successful compilation
96
- consoleLogs ?: ConsoleLogs [ ] ;
96
+ consoleLogs ?: ConsoleLogs ;
97
97
gas ?: number ;
98
98
}
99
99
@@ -108,7 +108,7 @@ interface CallTransaction {
108
108
// The second one is with function and parms
109
109
function ?: string ; // Default: no data
110
110
params ?: Array < string | number > ; // Default: no param
111
- consoleLogs ?: ConsoleLogs [ ] ;
111
+ consoleLogs ?: ConsoleLogs ;
112
112
gas ?: number ;
113
113
}
114
114
@@ -437,7 +437,7 @@ function compareStackTraces(
437
437
assert . lengthOf ( trace , description . length ) ;
438
438
}
439
439
440
- function compareConsoleLogs ( logs : string [ ] , expectedLogs ?: ConsoleLogs [ ] ) {
440
+ function compareConsoleLogs ( logs : string [ ] , expectedLogs ?: ConsoleLogs ) {
441
441
if ( expectedLogs === undefined ) {
442
442
return ;
443
443
}
@@ -446,7 +446,7 @@ function compareConsoleLogs(logs: string[], expectedLogs?: ConsoleLogs[]) {
446
446
447
447
for ( let i = 0 ; i < logs . length ; i ++ ) {
448
448
const actual = logs [ i ] ;
449
- const expected = consoleLogToString ( expectedLogs [ i ] ) ;
449
+ const expected = ConsoleLogger . format ( expectedLogs [ i ] ) ;
450
450
451
451
assert . equal ( actual , expected ) ;
452
452
}
0 commit comments