Skip to content

Commit

Permalink
chore: fix wrong comment & remove useless struct (#2105)
Browse files Browse the repository at this point in the history
When I read the source code of revm, I find some wrong comment. So I fix them.
  • Loading branch information
jackwener authored Feb 24, 2025
1 parent 03e3d8d commit 01aa4bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/interpreter/src/gas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ pub enum MemoryExtensionResult {
Extended,
/// Memory size stayed the same.
Same,
/// Not enough gas to extend memory.s
/// Not enough gas to extend memory.
OutOfGas,
}

Expand Down
4 changes: 1 addition & 3 deletions crates/interpreter/src/instruction_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ impl From<TransferError> for InstructionResult {
}
}

impl InstructionResult {}

impl From<SuccessReason> for InstructionResult {
fn from(value: SuccessReason) -> Self {
match value {
Expand Down Expand Up @@ -248,7 +246,7 @@ impl InstructionResult {
}
}

/// Internal result that are not ex
/// Internal results that are not exposed externally
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum InternalResult {
/// Internal instruction that signals Interpreter should continue running.
Expand Down

0 comments on commit 01aa4bb

Please sign in to comment.