File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
subprojects/gdk_rust/gdk_electrum/src Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ impl VerifiedCache {
147
147
fn new ( path : & str , network : NetworkId , key : & str ) -> Result < Self , Error > {
148
148
let mut filepath: PathBuf = path. into ( ) ;
149
149
let filename_preimage = format ! ( "{:?}{}" , network, key) ;
150
- let filename = sha256:: Hash :: hash ( filename_preimage. as_bytes ( ) ) . to_hex ( ) ;
150
+ let filename = sha256:: Hash :: hash ( filename_preimage. as_bytes ( ) ) . as_ref ( ) . to_hex ( ) ;
151
151
let key_bytes = sha256:: Hash :: hash ( key. as_bytes ( ) ) . into_inner ( ) ;
152
152
filepath. push ( format ! ( "verified_cache_{}" , filename) ) ;
153
153
let cipher = Aes256GcmSiv :: new ( Key :: from_slice ( & key_bytes) ) ;
Original file line number Diff line number Diff line change @@ -462,7 +462,7 @@ impl Session<Error> for ElectrumSession {
462
462
std:: fs:: create_dir_all ( & path) ?;
463
463
} else {
464
464
if let Some ( id) = aqua_wallet_id {
465
- fpath. push ( id. to_hex ( ) ) ;
465
+ fpath. push ( id. as_ref ( ) . to_hex ( ) ) ;
466
466
info ! ( "Fallback store root path: {:?}" , fpath) ;
467
467
fallback_path = Some ( fpath. as_path ( ) ) ;
468
468
}
You can’t perform that action at this time.
0 commit comments