mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-22 17:11:42 +03:00
fix error when selecting return between two tuples
This commit is contained in:
parent
848adfa6dd
commit
c27a166dfb
@ -457,7 +457,7 @@ impl<F: Field + PrimeField, G: GroupType<F>> CondSelectGadget<F> for Constrained
|
|||||||
|
|
||||||
ConstrainedValue::Array(array)
|
ConstrainedValue::Array(array)
|
||||||
}
|
}
|
||||||
(ConstrainedValue::Tuple(tuple_1), ConstrainedValue::Array(tuple_2)) => {
|
(ConstrainedValue::Tuple(tuple_1), ConstrainedValue::Tuple(tuple_2)) => {
|
||||||
let mut array = Vec::with_capacity(tuple_1.len());
|
let mut array = Vec::with_capacity(tuple_1.len());
|
||||||
|
|
||||||
for (i, (first, second)) in tuple_1.iter().zip(tuple_2.iter()).enumerate() {
|
for (i, (first, second)) in tuple_1.iter().zip(tuple_2.iter()).enumerate() {
|
||||||
|
Loading…
Reference in New Issue
Block a user