Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
rakita committed Apr 30, 2024
1 parent 545c39d commit d0eb39a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion crates/interpreter/src/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ pub mod analysis;
mod contract;
#[cfg(feature = "serde")]
pub mod serde;

mod shared_memory;
mod stack;

Expand Down
6 changes: 3 additions & 3 deletions crates/revm/src/handler/handle_types/post_execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ pub type EndHandle<'a, EXT, DB> = Arc<
+ 'a,
>;

/// Clear handle,doesn't take input or has output, its purpose is to clear the
/// context. It will be always called.
/// Clear handle, doesn't have output, its purpose is to clear the
/// context. It will be always called even on failed validation.
pub type ClearHandle<'a, EXT, DB> = Arc<dyn Fn(&mut Context<EXT, DB>) + 'a>;

/// Handles related to post execution after the stack loop is finished.
Expand All @@ -47,7 +47,7 @@ pub struct PostExecutionHandler<'a, EXT, DB: Database> {
pub reward_beneficiary: RewardBeneficiaryHandle<'a, EXT, DB>,
/// Main return handle, returns the output of the transact.
pub output: OutputHandle<'a, EXT, DB>,
/// End handle. Called when execution ends its execution.
/// End handle. Called when execution ends.
/// End in comparison to output will be called every time after execution.
/// Output in case of error will not be called.
pub end: EndHandle<'a, EXT, DB>,
Expand Down
1 change: 1 addition & 0 deletions crates/revm/src/journaled_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ impl JournaledState {
}
}

/// Clears the JournaledState. Preserving only the spec.
pub fn clear(&mut self) {
let spec = self.spec;
*self = Self::new(spec, HashSet::new());
Expand Down

0 comments on commit d0eb39a

Please sign in to comment.