Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/executor/stack/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,6 @@ impl<'config, 'precompiles, S: StackState<'config>, P: PrecompileSet>
// EIP-3860
if init_code.len() > limit {
self.state.metadata_mut().gasometer.fail();
let _ = self.exit_substate(StackExitKind::Failed);
return Err(ExitError::OutOfGas);
Comment thread
vimpunk marked this conversation as resolved.
Outdated
}
return self
Expand Down
4 changes: 2 additions & 2 deletions src/executor/stack/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ impl<'config> MemoryStackSubstate<'config> {
&mut self.metadata
}

/// Deconstruct the executor, return state to be applied. Panic if the
/// executor is not in the top-level substate.
/// Deconstruct the memory stack substate, return state to be applied. Panic if the
/// substate is not in the top-level substate.
#[must_use]
pub fn deconstruct<B: Backend>(
mut self,
Expand Down
3 changes: 2 additions & 1 deletion src/executor/stack/precompile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ pub trait PrecompileHandle {
}

/// A set of precompiles.
/// Checks of the provided address being in the precompile set should be
///
/// Checks if the provided address is in the precompile set. This should be
/// as cheap as possible since it may be called often.
pub trait PrecompileSet {
/// Tries to execute a precompile in the precompile set.
Expand Down