File tree 2 files changed +1
-8
lines changed
2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,6 @@ use crate::{
7
7
Error ,
8
8
} ;
9
9
10
- // pub use self::state::{Locked, Unlocked};
11
-
12
- // pub type UnlockedC = Adapter<dyn Unlocked<Error = crate::Error>, state::UnlockedState>;
13
- // pub type LockedC = Adapter<dyn Locked<Error = crate::Error>, state::UnlockedState>;
14
-
15
10
pub ( crate ) mod state {
16
11
#[ derive( Debug , Clone , Copy ) ]
17
12
/// The `Locked` state of the [`crate::Adapter`].
@@ -40,7 +35,6 @@ pub(crate) mod state {
40
35
pub struct Adapter < C , S = state:: LockedState > {
41
36
/// client in a specific state - Locked or Unlocked
42
37
pub client : Arc < C > ,
43
- // /// We must use the `C` type from the definition
44
38
_state : PhantomData < S > ,
45
39
}
46
40
Original file line number Diff line number Diff line change @@ -90,8 +90,7 @@ fn main() -> Result<(), Box<dyn Error>> {
90
90
91
91
let ethereum =
92
92
Ethereum :: init ( keystore_options, & config) . expect ( "failed to init Ethereum adapter" ) ;
93
- // .unlock()
94
- // .expect("failed to Unlock Ethereum adapter");
93
+
95
94
let adapter = Adapter :: new ( ethereum)
96
95
. unlock ( )
97
96
. expect ( "failed to Unlock Ethereum adapter" ) ;
You can’t perform that action at this time.
0 commit comments