File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ pub use self::dummy::DummyAdapter;
21
21
pub use self :: ethereum:: EthereumAdapter ;
22
22
23
23
pub enum AdapterTypes {
24
- DummyAdapter ( DummyAdapter ) ,
25
- EthereumAdapter ( EthereumAdapter ) ,
24
+ DummyAdapter ( Box < DummyAdapter > ) ,
25
+ EthereumAdapter ( Box < EthereumAdapter > ) ,
26
26
}
27
27
28
28
pub fn get_signable_state_root (
Original file line number Diff line number Diff line change @@ -74,9 +74,9 @@ fn main() {
74
74
dummy_auth : None ,
75
75
dummy_auth_tokens : None ,
76
76
} ;
77
- AdapterTypes :: EthereumAdapter (
77
+ AdapterTypes :: EthereumAdapter ( Box :: new (
78
78
EthereumAdapter :: init ( options, & config) . expect ( "failed to init adapter" ) ,
79
- )
79
+ ) )
80
80
}
81
81
"dummy" => {
82
82
let dummy_identity = cli. value_of ( "dummyIdentity" ) . unwrap ( ) ;
@@ -89,20 +89,20 @@ fn main() {
89
89
keystore_file : None ,
90
90
keystore_pwd : None ,
91
91
} ;
92
- AdapterTypes :: DummyAdapter (
92
+ AdapterTypes :: DummyAdapter ( Box :: new (
93
93
DummyAdapter :: init ( options, & config) . expect ( "failed to init adapter" ) ,
94
- )
94
+ ) )
95
95
}
96
96
// @TODO exit gracefully
97
97
_ => panic ! ( "We don't have any other adapters implemented yet!" ) ,
98
98
} ;
99
99
100
100
match adapter {
101
101
AdapterTypes :: EthereumAdapter ( ethadapter) => {
102
- run ( is_single_tick, & sentry_url, & config, ethadapter)
102
+ run ( is_single_tick, & sentry_url, & config, * ethadapter)
103
103
}
104
104
AdapterTypes :: DummyAdapter ( dummyadapter) => {
105
- run ( is_single_tick, & sentry_url, & config, dummyadapter)
105
+ run ( is_single_tick, & sentry_url, & config, * dummyadapter)
106
106
}
107
107
}
108
108
}
You can’t perform that action at this time.
0 commit comments