@@ -23,7 +23,7 @@ import {
23
23
import { opcodeName } from "../../stack-traces/opcodes" ;
24
24
import { VMTracer } from "../../stack-traces/vm-tracer" ;
25
25
import { RpcDebugTraceOutput } from "../output" ;
26
- import { globalEdrContext } from "../context/edr" ;
26
+ import { getGlobalEdrContext } from "../context/edr" ;
27
27
import { randomHashSeed } from "../fork/ForkStateManager" ;
28
28
import { assertEqualRunTxResults } from "../utils/assertions" ;
29
29
@@ -88,13 +88,13 @@ export class DualModeAdapter implements VMAdapter {
88
88
] ) ;
89
89
90
90
// Matches EthereumJS' runCall checkpoint call
91
- globalEdrContext . setStateRootGeneratorSeed ( randomHashSeed ( ) ) ;
91
+ getGlobalEdrContext ( ) . setStateRootGeneratorSeed ( randomHashSeed ( ) ) ;
92
92
93
93
assertEqualRunTxResults ( ethereumJSResult , edrResult ) ;
94
94
return edrResult ;
95
95
} catch ( error ) {
96
96
// Ensure that the state root generator seed is re-aligned upon an error
97
- globalEdrContext . setStateRootGeneratorSeed ( randomHashSeed ( ) ) ;
97
+ getGlobalEdrContext ( ) . setStateRootGeneratorSeed ( randomHashSeed ( ) ) ;
98
98
99
99
throw error ;
100
100
}
@@ -218,7 +218,7 @@ export class DualModeAdapter implements VMAdapter {
218
218
config
219
219
) ;
220
220
221
- globalEdrContext . setStateRootGeneratorSeed ( randomHashSeed ( ) ) ;
221
+ getGlobalEdrContext ( ) . setStateRootGeneratorSeed ( randomHashSeed ( ) ) ;
222
222
223
223
return edrResult ;
224
224
}
@@ -256,7 +256,7 @@ export class DualModeAdapter implements VMAdapter {
256
256
] ) ;
257
257
258
258
// Matches EthereumJS' runCall checkpoint call
259
- globalEdrContext . setStateRootGeneratorSeed ( randomHashSeed ( ) ) ;
259
+ getGlobalEdrContext ( ) . setStateRootGeneratorSeed ( randomHashSeed ( ) ) ;
260
260
261
261
assertEqualRunTxResults ( ethereumJSResult , edrResult ) ;
262
262
@@ -266,7 +266,7 @@ export class DualModeAdapter implements VMAdapter {
266
266
return edrResult ;
267
267
} catch ( error ) {
268
268
// Ensure that the state root generator seed is re-aligned upon an error
269
- globalEdrContext . setStateRootGeneratorSeed ( randomHashSeed ( ) ) ;
269
+ getGlobalEdrContext ( ) . setStateRootGeneratorSeed ( randomHashSeed ( ) ) ;
270
270
271
271
throw error ;
272
272
}
0 commit comments