From fa66c97f57c7f5a9bfc731458a9e44128fa6a14e Mon Sep 17 00:00:00 2001 From: sprites0 <199826320+sprites0@users.noreply.github.com> Date: Mon, 23 Jun 2025 22:47:52 +0000 Subject: [PATCH] chore: Remove unused imports --- src/node/evm/patch.rs | 8 ++------ src/node/types/reth_compat.rs | 3 +-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/node/evm/patch.rs b/src/node/evm/patch.rs index d699d991d..3c9ab0d91 100644 --- a/src/node/evm/patch.rs +++ b/src/node/evm/patch.rs @@ -1,10 +1,6 @@ -use alloy_primitives::{address, b256, Address, B256, U256}; +use alloy_primitives::{address, Address}; use reth_evm::block::BlockExecutionError; -use reth_primitives_traits::SignedTransaction; -use reth_revm::{db::states::StorageSlot, State}; -use revm::{primitives::HashMap, state::Account, Database}; -use std::{str::FromStr, sync::LazyLock}; -use tracing::trace; +use revm::{primitives::HashMap, state::Account}; /// Applies storage patches to the state after a transaction is executed. /// See https://github.com/hyperliquid-dex/hyper-evm-sync/commit/39047242b6260f7764527a2f5057dd9c3a75aa89 for more details. diff --git a/src/node/types/reth_compat.rs b/src/node/types/reth_compat.rs index e0302b9ad..cad5250bb 100644 --- a/src/node/types/reth_compat.rs +++ b/src/node/types/reth_compat.rs @@ -9,7 +9,7 @@ use std::sync::{Arc, LazyLock, Mutex}; use tokio::runtime::Handle; use tracing::info; -use crate::node::spot_meta::{self, erc20_contract_to_spot_token, SpotId}; +use crate::node::spot_meta::{erc20_contract_to_spot_token, SpotId}; use crate::{ node::types::{ReadPrecompileCalls, SystemTx}, HlBlock, HlBlockBody, @@ -103,7 +103,6 @@ fn system_tx_to_reth_transaction( "Contract not found: {:?} from spot mapping, fetching again...", to ); - let rt = Handle::current(); *EVM_MAP.lock().unwrap() = erc20_contract_to_spot_token(chain_id).unwrap(); } };