mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: make clippy happy (#13561)
This commit is contained in:
@ -75,10 +75,7 @@ impl AuthServerConfig {
|
||||
.clone()
|
||||
.unwrap_or_else(|| constants::DEFAULT_ENGINE_API_IPC_ENDPOINT.to_string());
|
||||
let ipc_server = ipc_server_config.build(ipc_endpoint_str);
|
||||
let res = ipc_server
|
||||
.start(module.inner)
|
||||
.await
|
||||
.map_err(reth_ipc::server::IpcServerStartError::from)?;
|
||||
let res = ipc_server.start(module.inner).await?;
|
||||
ipc_handle = Some(res);
|
||||
}
|
||||
|
||||
|
||||
@ -351,15 +351,13 @@ pub trait EthCall: EstimateCall + Call + LoadPendingBlock + LoadBlock + FullEthA
|
||||
let state_overrides = state_override.take();
|
||||
let overrides = EvmOverrides::new(state_overrides, block_overrides.clone());
|
||||
|
||||
let env = this
|
||||
.prepare_call_env(
|
||||
cfg_env_with_handler_cfg.clone(),
|
||||
block_env.clone(),
|
||||
tx,
|
||||
&mut db,
|
||||
overrides,
|
||||
)
|
||||
.map(Into::into)?;
|
||||
let env = this.prepare_call_env(
|
||||
cfg_env_with_handler_cfg.clone(),
|
||||
block_env.clone(),
|
||||
tx,
|
||||
&mut db,
|
||||
overrides,
|
||||
)?;
|
||||
let (res, _) = this.transact(&mut db, env)?;
|
||||
|
||||
match ensure_success(res.result) {
|
||||
|
||||
@ -20,7 +20,7 @@ use super::{EthApiError, EthResult, RpcInvalidTransactionError};
|
||||
#[inline]
|
||||
pub fn get_precompiles(spec_id: SpecId) -> impl IntoIterator<Item = Address> {
|
||||
let spec = PrecompileSpecId::from_spec_id(spec_id);
|
||||
Precompiles::new(spec).addresses().copied().map(Address::from)
|
||||
Precompiles::new(spec).addresses().copied()
|
||||
}
|
||||
|
||||
/// Calculates the caller gas allowance.
|
||||
|
||||
@ -537,7 +537,7 @@ mod tests {
|
||||
number: newest_block - i,
|
||||
gas_limit,
|
||||
gas_used,
|
||||
base_fee_per_gas: base_fee_per_gas.map(Into::into),
|
||||
base_fee_per_gas,
|
||||
parent_hash,
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
@ -93,7 +93,7 @@ where
|
||||
blob_gas_used: is_cancun.then(|| {
|
||||
transactions.iter().map(|tx| tx.blob_gas_used().unwrap_or_default()).sum::<u64>()
|
||||
}),
|
||||
excess_blob_gas: block_env.get_blob_excess_gas().map(Into::into),
|
||||
excess_blob_gas: block_env.get_blob_excess_gas(),
|
||||
extra_data: Default::default(),
|
||||
parent_beacon_block_root: is_cancun.then_some(B256::ZERO),
|
||||
requests_hash: is_prague.then_some(EMPTY_REQUESTS_HASH),
|
||||
@ -118,7 +118,7 @@ where
|
||||
tx_type: tx.tx_type(),
|
||||
success: result.is_success(),
|
||||
cumulative_gas_used,
|
||||
logs: result.into_logs().into_iter().map(Into::into).collect(),
|
||||
logs: result.into_logs().into_iter().collect(),
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
|
||||
@ -171,8 +171,7 @@ where
|
||||
while idx < body.len() {
|
||||
match &body[idx] {
|
||||
BundleItem::Tx { tx, can_revert } => {
|
||||
let recovered_tx = recover_raw_transaction::<PoolPooledTx<Eth::Pool>>(tx)
|
||||
.map_err(EthApiError::from)?;
|
||||
let recovered_tx = recover_raw_transaction::<PoolPooledTx<Eth::Pool>>(tx)?;
|
||||
let (tx, signer) = recovered_tx.to_components();
|
||||
let tx: PoolConsensusTx<Eth::Pool> =
|
||||
<Eth::Pool as TransactionPool>::Transaction::pooled_into_consensus(tx);
|
||||
|
||||
Reference in New Issue
Block a user