@@ -89,7 +89,6 @@ pub trait CheatcodesExecutor {
89
89
/// [revm::Inspector].
90
90
fn get_inspector < ' a > ( & ' a mut self , cheats : & ' a mut Cheatcodes ) -> Box < dyn InspectorExt + ' a > ;
91
91
92
- /// Obtains [revm::Evm] instance and executes the given CREATE frame.
93
92
/// Obtains [revm::Evm] instance and executes the given CREATE frame.
94
93
fn exec_create (
95
94
& mut self ,
@@ -222,19 +221,19 @@ macro_rules! try_or_return {
222
221
223
222
/// Contains additional, test specific resources that should be kept for the duration of the test
224
223
#[ derive( Debug , Default ) ]
225
- pub struct Context {
224
+ pub struct TestContext {
226
225
/// Buffered readers for files opened for reading (path => BufReader mapping)
227
226
pub opened_read_files : HashMap < PathBuf , BufReader < File > > ,
228
227
}
229
228
230
229
/// Every time we clone `Context`, we want it to be empty
231
- impl Clone for Context {
230
+ impl Clone for TestContext {
232
231
fn clone ( & self ) -> Self {
233
232
Default :: default ( )
234
233
}
235
234
}
236
235
237
- impl Context {
236
+ impl TestContext {
238
237
/// Clears the context.
239
238
#[ inline]
240
239
pub fn clear ( & mut self ) {
@@ -484,7 +483,7 @@ pub struct Cheatcodes {
484
483
pub config : Arc < CheatsConfig > ,
485
484
486
485
/// Test-scoped context holding data that needs to be reset every test run
487
- pub context : Context ,
486
+ pub test_context : TestContext ,
488
487
489
488
/// Whether to commit FS changes such as file creations, writes and deletes.
490
489
/// Used to prevent duplicate changes file executing non-committing calls.
@@ -568,7 +567,7 @@ impl Cheatcodes {
568
567
broadcast : Default :: default ( ) ,
569
568
broadcastable_transactions : Default :: default ( ) ,
570
569
access_list : Default :: default ( ) ,
571
- context : Default :: default ( ) ,
570
+ test_context : Default :: default ( ) ,
572
571
serialized_jsons : Default :: default ( ) ,
573
572
eth_deals : Default :: default ( ) ,
574
573
gas_metering : Default :: default ( ) ,
0 commit comments