Skip to content

Commit

Permalink
fix(evm): uninitialize fuzz backend on inspect (#4588)
Browse files Browse the repository at this point in the history
* fix(evm): clone fuzz backend as not initialized

* fix(evm): uninitialize fuzz backend on inspect
  • Loading branch information
mattsse authored Mar 17, 2023
1 parent 9948d56 commit 06f7c9c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions evm/src/executor/backend/fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ impl<'a> FuzzBackendWrapper<'a> {
where
INSP: Inspector<Self>,
{
// this is a new call to inspect with a new env, so even if we've cloned the backend
// already, we reset the initialized state
self.is_initialized = false;
revm::evm_inner::<Self, true>(env, self, &mut inspector).transact()
}

Expand Down

0 comments on commit 06f7c9c

Please sign in to comment.