We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c9abb8 commit 606f43dCopy full SHA for 606f43d
1 file changed
src/jet/elements/c_env.rs
@@ -156,18 +156,17 @@ pub(super) fn new_tx(
156
157
let txid = tx.txid();
158
let tx_data = new_tx_data(tx, in_utxos);
159
- for (((n, inp), in_utxo), inp_data) in tx
160
- .input
161
- .iter()
162
- .enumerate()
+ for (((raw_annex, inp), in_utxo), inp_data) in raw_annexes
+ .iter_mut()
+ .zip(tx.input.iter())
163
.zip(in_utxos.iter())
164
.zip(tx_data.inputs.iter())
165
{
166
- raw_annexes[n] = inp_data
+ *raw_annex = inp_data
167
.annex
168
.as_ref()
169
.map(|annex| c_elements::CRawBuffer::new(annex));
170
- let annex_ptr = raw_annexes[n]
+ let annex_ptr = raw_annex
171
172
.map_or(core::ptr::null(), |b| b as *const _);
173
let res = new_raw_input(inp, in_utxo, inp_data, annex_ptr);
0 commit comments