Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some typos #1394

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion crates/interpreter/src/instructions/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use std::boxed::Box;

/// Resize memory and return memory range if successful.
/// Return `None` if there is not enough gas. And if `len`
/// is zero return `Some(usize::MAX..usize::MAX)`.
/// is zero return `Some(usize::MAX.usize::MAX)`.
pub fn resize_memory(
interpreter: &mut Interpreter,
offset: U256,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub fn get_memory_input_and_out_ranges(
}

/// Resize memory and return range of memory.
/// If `len` is 0 dont touch memory and return `usize::MAX` as offset and 0 as length.
/// If `len` is 0 don't touch memory and return `usize::MAX` as offset and 0 as length.
#[inline]
pub fn resize_memory_and_return_range(
interpreter: &mut Interpreter,
Expand Down
2 changes: 1 addition & 1 deletion crates/interpreter/src/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl Interpreter {
}
}

/// Set set is_eof_init to true, this is used to enable `RETURNCONTRACT` opcode.
/// Set is_eof_init to true, this is used to enable `RETURNCONTRACT` opcode.
#[inline]
pub fn set_is_eof_init(&mut self) {
self.is_eof_init = true;
Expand Down
2 changes: 1 addition & 1 deletion crates/interpreter/src/interpreter_action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use std::boxed::Box;
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum InterpreterAction {
/// CALL, CALLCODE, DELEGATECALL, STATICCALL
/// or EOF EXT instuction called.
/// or EOF EXT instruction called.
Call { inputs: Box<CallInputs> },
/// CREATE or CREATE2 instruction called.
Create { inputs: Box<CreateInputs> },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,17 @@ use core::ops::Range;
#[derive(Debug, Default, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct EOFCreateInput {
/// Caller of Eof Craate
/// Caller of Eof Create
pub caller: Address,
/// New contract address.
pub created_address: Address,
/// Values of ether transfered
/// Values of ether transferred
pub value: U256,
/// Init eof code that is going to be executed.
pub eof_init_code: Eof,
/// Gas limit for the create call.
pub gas_limit: u64,
/// Return memory range. If EOF creation Reverts it can return the
/// the memory range.
/// Return memory range. If EOF creation Reverts it can return the memory range.
pub return_memory_range: Range<usize>,
}

Expand Down
Loading