Skip to content

Commit

Permalink
tiny refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
imikushin committed Jan 30, 2025
1 parent 237d422 commit e93856e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/cli/spell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ pub fn do_prove(
// Serialize spell into CBOR
let spell_data = util::write(&(&norm_spell, &proof))?;

// Parse amount
let funding_utxo_value = Amount::from_sat(funding_utxo_value);

// Parse change address into ScriptPubkey
let change_script_pubkey = bitcoin::Address::from_str(&change_address)?
.assume_checked()
Expand All @@ -114,7 +111,7 @@ pub fn do_prove(
tx,
&spell_data,
funding_utxo,
funding_utxo_value,
Amount::from_sat(funding_utxo_value),
change_script_pubkey,
fee_rate,
&prev_txs,
Expand Down

0 comments on commit e93856e

Please sign in to comment.