mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: Remove unused imports
This commit is contained in:
@ -1,10 +1,6 @@
|
|||||||
use alloy_primitives::{address, b256, Address, B256, U256};
|
use alloy_primitives::{address, Address};
|
||||||
use reth_evm::block::BlockExecutionError;
|
use reth_evm::block::BlockExecutionError;
|
||||||
use reth_primitives_traits::SignedTransaction;
|
use revm::{primitives::HashMap, state::Account};
|
||||||
use reth_revm::{db::states::StorageSlot, State};
|
|
||||||
use revm::{primitives::HashMap, state::Account, Database};
|
|
||||||
use std::{str::FromStr, sync::LazyLock};
|
|
||||||
use tracing::trace;
|
|
||||||
|
|
||||||
/// Applies storage patches to the state after a transaction is executed.
|
/// 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.
|
/// See https://github.com/hyperliquid-dex/hyper-evm-sync/commit/39047242b6260f7764527a2f5057dd9c3a75aa89 for more details.
|
||||||
|
|||||||
@ -9,7 +9,7 @@ use std::sync::{Arc, LazyLock, Mutex};
|
|||||||
use tokio::runtime::Handle;
|
use tokio::runtime::Handle;
|
||||||
use tracing::info;
|
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::{
|
use crate::{
|
||||||
node::types::{ReadPrecompileCalls, SystemTx},
|
node::types::{ReadPrecompileCalls, SystemTx},
|
||||||
HlBlock, HlBlockBody,
|
HlBlock, HlBlockBody,
|
||||||
@ -103,7 +103,6 @@ fn system_tx_to_reth_transaction(
|
|||||||
"Contract not found: {:?} from spot mapping, fetching again...",
|
"Contract not found: {:?} from spot mapping, fetching again...",
|
||||||
to
|
to
|
||||||
);
|
);
|
||||||
let rt = Handle::current();
|
|
||||||
*EVM_MAP.lock().unwrap() = erc20_contract_to_spot_token(chain_id).unwrap();
|
*EVM_MAP.lock().unwrap() = erc20_contract_to_spot_token(chain_id).unwrap();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user