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 @@ -145,7 +145,7 @@ void marshal_pubkey(struct pubkey const *pp, PubKey *o_pp)
145145void marshal_utxo (struct utxo const *up, InputDescriptor *idesc)
146146{
147147 idesc->mutable_key_loc ()->add_key_path (up->keyindex );
148- idesc->mutable_prev_output ()-> set_value_sat (up->amount .satoshis );
148+ idesc->set_value_sat (up->amount .satoshis );
149149 idesc->set_spend_type (up->is_p2sh
150150 ? SpendType::P2SH_P2WPKH
151151 : SpendType::P2WPKH);
@@ -195,7 +195,7 @@ void marshal_single_input_tx(struct bitcoin_tx const *tx,
195195 assert (tx->wtx ->num_inputs == 1 );
196196 assert (tx->psbt ->num_inputs == 1 );
197197 InputDescriptor *idesc = o_tp->add_input_descs ();
198- idesc->mutable_prev_output ()-> set_value_sat (psbt_input_get_amount (tx->psbt , 0 ).satoshis );
198+ idesc->set_value_sat (psbt_input_get_amount (tx->psbt , 0 ).satoshis );
199199 if (redeem_script)
200200 idesc->set_redeem_script ((const char *) redeem_script,
201201 tal_count (redeem_script));
You can’t perform that action at this time.
0 commit comments