mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: lint
This commit is contained in:
@ -27,12 +27,6 @@ use reth_primitives_traits::{transaction::signed::is_impersonated_tx, NodePrimit
|
|||||||
use reth_revm::{
|
use reth_revm::{
|
||||||
context_interface::result::ResultAndState, db::State, state::Bytecode, DatabaseCommit,
|
context_interface::result::ResultAndState, db::State, state::Bytecode, DatabaseCommit,
|
||||||
};
|
};
|
||||||
use std::{
|
|
||||||
cell::RefCell,
|
|
||||||
sync::Mutex,
|
|
||||||
time::{Duration, Instant},
|
|
||||||
};
|
|
||||||
use tracing::info;
|
|
||||||
|
|
||||||
/// Factory for [`EthExecutionStrategy`].
|
/// Factory for [`EthExecutionStrategy`].
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
|
|||||||
@ -5,7 +5,7 @@ use reth_revm::{
|
|||||||
context::{Cfg, ContextTr},
|
context::{Cfg, ContextTr},
|
||||||
handler::{EthPrecompiles, PrecompileProvider},
|
handler::{EthPrecompiles, PrecompileProvider},
|
||||||
interpreter::{Gas, InstructionResult, InterpreterResult},
|
interpreter::{Gas, InstructionResult, InterpreterResult},
|
||||||
precompile::{PrecompileError, PrecompileErrors},
|
precompile::PrecompileErrors,
|
||||||
};
|
};
|
||||||
use std::{collections::HashMap, sync::Arc};
|
use std::{collections::HashMap, sync::Arc};
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ impl<CTX: ContextTr> PrecompileProvider for ReplayPrecompile<CTX> {
|
|||||||
let Some(get) = precompile_calls.get(&input) else {
|
let Some(get) = precompile_calls.get(&input) else {
|
||||||
result.gas.spend_all();
|
result.gas.spend_all();
|
||||||
result.result = InstructionResult::PrecompileError;
|
result.result = InstructionResult::PrecompileError;
|
||||||
return Ok(Some(result))
|
return Ok(Some(result));
|
||||||
};
|
};
|
||||||
|
|
||||||
return match *get {
|
return match *get {
|
||||||
|
|||||||
Reference in New Issue
Block a user