-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the feature you would like
we currently rely on clone and do a mandatory clone to store the initial state:
Lines 43 to 46 in 1304499
| /// Creates a new [`TxTracer`] instance. | |
| pub fn new(mut evm: E) -> Self { | |
| Self { fused_inspector: evm.inspector_mut().clone(), evm } | |
| } |
this does not work for non clone inspectors:
instead we can introduce an Init generic that is
FnMut() -> E::Inspector
and by default
let fused = ins.clone();
let init = move || ins.clone();
Additional context
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request