Skip to content

Commit a915989

Browse files
committed
feat: add toggle for inspector
1 parent 685caa3 commit a915989

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

crates/evm/src/eth/mod.rs

+10
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,16 @@ impl<DB: Database, I, PRECOMPILE> EthEvm<DB, I, PRECOMPILE> {
8383
pub fn inspector_mut(&mut self) -> &mut I {
8484
&mut self.inner.data.inspector
8585
}
86+
87+
/// Disables the inspector.
88+
pub fn enable_inspector(&mut self) {
89+
self.inspect = true;
90+
}
91+
92+
/// Disables the inspector.
93+
pub fn disable_inspector(&mut self) {
94+
self.inspect = false;
95+
}
8696
}
8797

8898
impl<DB: Database, I, PRECOMPILE> Deref for EthEvm<DB, I, PRECOMPILE> {

0 commit comments

Comments
 (0)