Correct no-std builds for monero-clsag and monero-bulletproofs

This commit is contained in:
Luke Parker
2024-06-15 17:06:54 -04:00
parent f7c13fd1ca
commit d9107b53a6
9 changed files with 10 additions and 8 deletions

View File

@@ -190,7 +190,7 @@ fn prepare_inputs(
// We now need to sort the inputs by their key image
// We take the transaction's inputs, temporarily
let mut tx_inputs = Vec::with_capacity(inputs.len());
std::mem::swap(&mut tx_inputs, &mut tx.prefix.inputs);
core::mem::swap(&mut tx_inputs, &mut tx.prefix.inputs);
// Then we join them with their signable contexts
let mut joint = tx_inputs.into_iter().zip(signable).collect::<Vec<_>>();