Skip to content

Commit 66e1a6a

Browse files
committed
remove use of deprecated encoding function
1 parent 67720ab commit 66e1a6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transaction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ impl TxParams {
9191

9292
pub fn transaction(&self, pruned: &RedeemNode<Elements>) -> elements::Transaction {
9393
let mut tx = self.unsatisfied_transaction();
94-
let (simplicity_program_bytes, simplicity_witness_bytes) = pruned.encode_to_vec();
94+
let (simplicity_program_bytes, simplicity_witness_bytes) = pruned.to_vec_with_witness();
9595
let cmr = pruned.cmr();
9696
tx.input[0].witness = elements::TxInWitness {
9797
amount_rangeproof: None,

0 commit comments

Comments
 (0)