File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ impl Adapter for EthereumAdapter {
226
226
fn get_auth ( & self , validator : & ValidatorId ) -> AdapterResult < String > {
227
227
let wallet = self
228
228
. wallet
229
- . clone ( )
229
+ . as_ref ( )
230
230
. ok_or_else ( || AdapterError :: Configuration ( "failed to unlock wallet" . to_string ( ) ) ) ?;
231
231
232
232
let era = Utc :: now ( ) . timestamp_millis ( ) as f64 / 60000.0 ;
@@ -236,10 +236,9 @@ impl Adapter for EthereumAdapter {
236
236
identity : None ,
237
237
address : self . whoami ( ) . to_hex_checksummed_string ( ) ,
238
238
} ;
239
- let token = ewt_sign ( & wallet, & self . keystore_pwd , & payload)
240
- . map_err ( |_| map_error ( "Failed to sign token" ) ) ?;
241
239
242
- Ok ( token)
240
+ ewt_sign ( & wallet, & self . keystore_pwd , & payload)
241
+ . map_err ( |_| map_error ( "Failed to sign token" ) )
243
242
}
244
243
}
245
244
You can’t perform that action at this time.
0 commit comments