File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ edition.workspace = true
5
5
6
6
[dependencies ]
7
7
ethrex-common.workspace = true
8
- ethrex-rpc = { workspace = true , features = [ " l2 " ] }
8
+ ethrex-rpc. workspace = true
9
9
ethereum-types.workspace = true
10
10
tokio.workspace = true
11
11
hex.workspace = true
@@ -33,3 +33,6 @@ indexing_slicing = "deny"
33
33
as_conversions = " deny"
34
34
unnecessary_cast = " warn"
35
35
panic = " deny"
36
+
37
+ [features ]
38
+ l2 = [" ethrex-rpc/l2" ]
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ use bytes::Bytes;
2
2
use calldata:: { encode_calldata, Value } ;
3
3
use ethereum_types:: { Address , H160 , H256 , U256 } ;
4
4
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 ;
5
8
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
+
10
10
use itertools:: Itertools ;
11
11
use keccak_hash:: keccak;
12
12
use merkle_tree:: merkle_proof;
@@ -159,6 +159,7 @@ pub async fn withdraw(
159
159
. await
160
160
}
161
161
162
+ #[ cfg( feature = "l2" ) ]
162
163
pub async fn claim_withdraw (
163
164
amount : U256 ,
164
165
tx_hash : H256 ,
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ pub mod test_utils {
26
26
#[ cfg( feature = "l2" ) ]
27
27
use ethrex_storage_l2:: { EngineTypeL2 , StoreL2 } ;
28
28
use hex_literal:: hex;
29
- #[ cfg( feature = "based " ) ]
29
+ #[ cfg( feature = "l2 " ) ]
30
30
use secp256k1:: SecretKey ;
31
31
use std:: { str:: FromStr , sync:: Arc } ;
32
32
You can’t perform that action at this time.
0 commit comments