mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: Now cargo fmt sorts imports and trait methods
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
use crate::{
|
||||
evm::{
|
||||
api::{ctx::HlContext, HlEvmInner},
|
||||
api::{HlEvmInner, ctx::HlContext},
|
||||
spec::HlSpecId,
|
||||
transaction::HlTxEnv,
|
||||
},
|
||||
@ -10,18 +10,18 @@ use alloy_primitives::{Address, Bytes};
|
||||
use config::HlEvmConfig;
|
||||
use reth::{
|
||||
api::FullNodeTypes,
|
||||
builder::{components::ExecutorBuilder, BuilderContext},
|
||||
builder::{BuilderContext, components::ExecutorBuilder},
|
||||
};
|
||||
use reth_evm::{Database, Evm, EvmEnv};
|
||||
use revm::{
|
||||
context::{
|
||||
result::{EVMError, ExecutionResult, HaltReason, Output, ResultAndState, SuccessReason},
|
||||
BlockEnv, TxEnv,
|
||||
},
|
||||
handler::{instructions::EthInstructions, EthPrecompiles, PrecompileProvider},
|
||||
interpreter::{interpreter::EthInterpreter, InterpreterResult},
|
||||
state::EvmState,
|
||||
Context, ExecuteEvm, InspectEvm, Inspector,
|
||||
context::{
|
||||
BlockEnv, TxEnv,
|
||||
result::{EVMError, ExecutionResult, HaltReason, Output, ResultAndState, SuccessReason},
|
||||
},
|
||||
handler::{EthPrecompiles, PrecompileProvider, instructions::EthInstructions},
|
||||
interpreter::{InterpreterResult, interpreter::EthInterpreter},
|
||||
state::EvmState,
|
||||
};
|
||||
use std::ops::{Deref, DerefMut};
|
||||
|
||||
@ -98,11 +98,7 @@ where
|
||||
&mut self,
|
||||
tx: Self::Tx,
|
||||
) -> Result<ResultAndState<Self::HaltReason>, Self::Error> {
|
||||
if self.inspect {
|
||||
self.inner.inspect_tx(tx)
|
||||
} else {
|
||||
self.inner.transact(tx)
|
||||
}
|
||||
if self.inspect { self.inner.inspect_tx(tx) } else { self.inner.transact(tx) }
|
||||
}
|
||||
|
||||
fn transact_system_call(
|
||||
|
||||
Reference in New Issue
Block a user