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 {
120120}
121121
122122/// Read TransferInfo file
123- pub fn read_rgb_transfer_info ( path : & str ) -> TransferInfo {
123+ pub fn read_rgb_transfer_info ( path : & Path ) -> TransferInfo {
124124 let serialized_info = fs:: read_to_string ( path) . expect ( "able to read transfer info file" ) ;
125125 serde_json:: from_str ( & serialized_info) . expect ( "valid transfer info" )
126126}
@@ -359,7 +359,7 @@ pub(crate) fn color_htlc(htlc_tx: &mut Transaction, htlc: &HTLCOutputInCommitmen
359359 let commitment_txid = consignment_htlc_outpoint. txid ;
360360
361361 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) ;
363363 let contract_id = transfer_info. contract_id ;
364364
365365 let mut beneficiaries = vec ! [ ] ;
You can’t perform that action at this time.
0 commit comments