Skip to content

Commit

Permalink
fix cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dimxy committed Nov 2, 2023
1 parent 69bd48b commit e5283c3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions mm2src/coins/utxo/utxo_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3096,8 +3096,14 @@ pub fn convert_to_address<T: UtxoCommonOps>(coin: &T, from: &str, to_address_for
json::from_value(to_address_format).map_err(|e| ERRL!("Error on parse UTXO address format {:?}", e))?;
let from_address = try_s!(coin.address_from_str(from));
match to_address_format {
UtxoAddressFormat::Standard => { // assuming convertion to p2pkh
Ok(LegacyAddress::new(&from_address.hash, coin.as_ref().conf.address_prefixes.p2pkh.clone(), coin.as_ref().conf.checksum_type).to_string())
UtxoAddressFormat::Standard => {
// assuming convertion to p2pkh
Ok(LegacyAddress::new(
&from_address.hash,
coin.as_ref().conf.address_prefixes.p2pkh.clone(),
coin.as_ref().conf.checksum_type,
)
.to_string())
},
UtxoAddressFormat::Segwit => {
let bech32_hrp = &coin.as_ref().conf.bech32_hrp;
Expand Down

0 comments on commit e5283c3

Please sign in to comment.