Skip to content

Commit

Permalink
fix deps
Browse files Browse the repository at this point in the history
  • Loading branch information
nkysg committed Jul 5, 2024
1 parent d6b423c commit 794f7f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ alloy-transport-ws = { version = "0.1", default-features = false }
alloy-transport-ipc = { version = "0.1", default-features = false }
alloy-pubsub = { version = "0.1", default-features = false }
alloy-json-rpc = { version = "0.1", default-features = false }
alloy-rpc-client = { version = "0.1", default-features = false }
alloy-rpc-client = "0.1"

# op
op-alloy-rpc-types = { version = "0.1", features = ["arbitrary"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/chainspec/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ default = ["std"]
optimism = [
"reth-ethereum-forks/optimism",
"serde",
"op-alloy-rpc-types/arbitrary",
"dep:op-alloy-rpc-types",
]
std = []
arbitrary = [
Expand Down
9 changes: 4 additions & 5 deletions crates/chainspec/src/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ use reth_network_peers::{
op_testnet_nodes, sepolia_nodes,
};

#[cfg(feature = "optimism")]
use op_alloy_rpc_types::genesis::OptimismChainInfo;

/// The Ethereum mainnet spec
pub static MAINNET: Lazy<Arc<ChainSpec>> = Lazy::new(|| {
ChainSpec {
Expand Down Expand Up @@ -1091,7 +1088,7 @@ impl DepositContract {
#[derive(Default, Debug, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
struct OptimismGenesisInfo {
optimism_chain_info: OptimismChainInfo,
optimism_chain_info: op_alloy_rpc_types::genesis::OptimismChainInfo,
#[serde(skip)]
base_fee_params: BaseFeeParamsKind,
}
Expand All @@ -1101,7 +1098,9 @@ impl OptimismGenesisInfo {
fn extract_from(genesis: &Genesis) -> Self {
let mut optimism_genesis_info = Self::default();
if let Some(optimism_chain_info) =
OptimismChainInfo::extract_from(&genesis.config.extra_fields)
op_alloy_rpc_types::genesis::OptimismChainInfo::extract_from(
&genesis.config.extra_fields,
)
{
if let Some(ref optimism_base_fee_info) = optimism_chain_info.base_fee_info {
if let (Some(elasticity), Some(denominator)) = (
Expand Down

0 comments on commit 794f7f4

Please sign in to comment.