Skip to content
Merged
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
6 changes: 3 additions & 3 deletions crates/precompile/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl PrecompileOutput {
}
}
}
#[derive(Clone, Debug, PartialEq, Eq)]
#[derive(Clone, Debug)]
pub struct Precompiles {
pub fun: HashMap<Address, Precompile>,
}
Expand All @@ -70,7 +70,7 @@ impl Default for Precompiles {
}
}

#[derive(Clone, PartialEq, Eq, Hash)]
#[derive(Clone)]
pub enum Precompile {
Standard(StandardPrecompileFn),
Env(EnvPrecompileFn),
Expand All @@ -85,7 +85,7 @@ impl fmt::Debug for Precompile {
}
}

#[derive(Clone, Debug, PartialEq, Eq, Hash)]
#[derive(Clone, Debug)]
pub struct PrecompileAddress(Address, Precompile);

impl From<PrecompileAddress> for (Address, Precompile) {
Expand Down
3 changes: 1 addition & 2 deletions crates/revm/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ type CalculateGasRefundHandle = fn(&Env, &Gas) -> u64;
/// Handler acts as a proxy and allow to define different behavior for different
/// sections of the code. This allows nice integration of different chains or
/// to disable some mainnet behavior.
#[derive(Debug)]
pub struct Handler<DB: Database> {
// Uses env, call resul and returned gas from the call to determine the gas
// Uses env, call result and returned gas from the call to determine the gas
// that is returned from transaction execution..
pub call_return: CallReturnHandle,
pub reimburse_caller: ReimburseCallerHandle<DB>,
Expand Down