File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ pub fn get_rgb_runtime(ldk_data_dir: &Path) -> RgbRuntime {
120
120
}
121
121
122
122
/// Read TransferInfo file
123
- pub fn read_rgb_transfer_info ( path : & str ) -> TransferInfo {
123
+ pub fn read_rgb_transfer_info ( path : & Path ) -> TransferInfo {
124
124
let serialized_info = fs:: read_to_string ( path) . expect ( "able to read transfer info file" ) ;
125
125
serde_json:: from_str ( & serialized_info) . expect ( "valid transfer info" )
126
126
}
@@ -359,7 +359,7 @@ pub(crate) fn color_htlc(htlc_tx: &mut Transaction, htlc: &HTLCOutputInCommitmen
359
359
let commitment_txid = consignment_htlc_outpoint. txid ;
360
360
361
361
let transfer_info_path = ldk_data_dir. join ( format ! ( "{}_transfer_info" , commitment_txid) ) ;
362
- let transfer_info = read_rgb_transfer_info ( transfer_info_path. to_str ( ) . expect ( "valid transfer into file path" ) ) ;
362
+ let transfer_info = read_rgb_transfer_info ( & transfer_info_path) ;
363
363
let contract_id = transfer_info. contract_id ;
364
364
365
365
let mut beneficiaries = vec ! [ ] ;
You can’t perform that action at this time.
0 commit comments