@@ -19,6 +19,7 @@ import {
19
19
TracingMessage ,
20
20
TracingStep ,
21
21
} from "@ignored/edr" ;
22
+ import { Common } from "@nomicfoundation/ethereumjs-common" ;
22
23
import chalk from "chalk" ;
23
24
import debug from "debug" ;
24
25
import { EventEmitter } from "events" ;
@@ -70,6 +71,7 @@ import {
70
71
ethereumjsMempoolOrderToEdrMineOrdering ,
71
72
ethereumsjsHardforkToEdrSpecId ,
72
73
} from "./utils/convertToEdr" ;
74
+ import { makeCommon } from "./utils/makeCommon" ;
73
75
import { LoggerConfig , printLine , replaceLastLine } from "./modules/logger" ;
74
76
75
77
const log = debug ( "hardhat:core:hardhat-network:provider" ) ;
@@ -160,6 +162,8 @@ export class EdrProviderWrapper
160
162
private readonly _eventAdapter : EdrProviderEventAdapter ,
161
163
private readonly _vmTraceDecoder : VmTraceDecoder ,
162
164
private readonly _rawTraceCallbacks : RawTraceCallbacks ,
165
+ // The common configuration for EthereumJS VM is not used by EDR, but tests expect it as part of the provider.
166
+ private readonly _common : Common ,
163
167
tracingConfig ?: TracingConfig
164
168
) {
165
169
super ( ) ;
@@ -287,11 +291,13 @@ export class EdrProviderWrapper
287
291
}
288
292
) ;
289
293
294
+ const common = makeCommon ( getNodeConfig ( config ) ) ;
290
295
const wrapper = new EdrProviderWrapper (
291
296
provider ,
292
297
eventAdapter ,
293
298
vmTraceDecoder ,
294
299
rawTraceCallbacks ,
300
+ common ,
295
301
tracingConfig
296
302
) ;
297
303
0 commit comments