Skip to content

Commit f074da6

Browse files
committed
Fix linter
1 parent dfb30cc commit f074da6

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

crates/l2/sdk/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition.workspace = true
55

66
[dependencies]
77
ethrex-common.workspace = true
8-
ethrex-rpc = { workspace = true, features = ["l2"] }
8+
ethrex-rpc.workspace = true
99
ethereum-types.workspace = true
1010
tokio.workspace = true
1111
hex.workspace = true
@@ -33,3 +33,6 @@ indexing_slicing = "deny"
3333
as_conversions = "deny"
3434
unnecessary_cast = "warn"
3535
panic = "deny"
36+
37+
[features]
38+
l2 = ["ethrex-rpc/l2"]

crates/l2/sdk/src/sdk.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ use bytes::Bytes;
22
use calldata::{encode_calldata, Value};
33
use ethereum_types::{Address, H160, H256, U256};
44
use ethrex_common::types::{GenericTransaction, Transaction, TxKind};
5+
use ethrex_rpc::clients::eth::{errors::EthClientError, eth_sender::Overrides, EthClient};
6+
#[cfg(feature = "l2")]
7+
use ethrex_rpc::l2::withdrawal::WithdrawalProof;
58
use ethrex_rpc::types::{block::BlockBodyWrapper, receipt::RpcReceipt};
6-
use ethrex_rpc::{
7-
clients::eth::{errors::EthClientError, eth_sender::Overrides, EthClient},
8-
l2::withdrawal::WithdrawalProof,
9-
};
9+
1010
use itertools::Itertools;
1111
use keccak_hash::keccak;
1212
use merkle_tree::merkle_proof;
@@ -159,6 +159,7 @@ pub async fn withdraw(
159159
.await
160160
}
161161

162+
#[cfg(feature = "l2")]
162163
pub async fn claim_withdraw(
163164
amount: U256,
164165
tx_hash: H256,

crates/networking/rpc/eth/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub mod test_utils {
2626
#[cfg(feature = "l2")]
2727
use ethrex_storage_l2::{EngineTypeL2, StoreL2};
2828
use hex_literal::hex;
29-
#[cfg(feature = "based")]
29+
#[cfg(feature = "l2")]
3030
use secp256k1::SecretKey;
3131
use std::{str::FromStr, sync::Arc};
3232

0 commit comments

Comments
 (0)