mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-18 07:11:53 +03:00
fix reference error
This commit is contained in:
parent
6d00e9e0d3
commit
7c9a5ad8aa
@ -54,7 +54,7 @@ impl<F: Field + PrimeField, G: GroupType<F>> ConstrainedProgram<F, G> {
|
|||||||
Expression::Address(address, span) => Ok(ConstrainedValue::Address(Address::constant(address, &span)?)),
|
Expression::Address(address, span) => Ok(ConstrainedValue::Address(Address::constant(address, &span)?)),
|
||||||
Expression::Boolean(boolean, span) => Ok(ConstrainedValue::Boolean(new_bool_constant(boolean, &span)?)),
|
Expression::Boolean(boolean, span) => Ok(ConstrainedValue::Boolean(new_bool_constant(boolean, &span)?)),
|
||||||
Expression::Field(field, span) => Ok(ConstrainedValue::Field(FieldType::constant(field, &span)?)),
|
Expression::Field(field, span) => Ok(ConstrainedValue::Field(FieldType::constant(field, &span)?)),
|
||||||
Expression::Group(group_element) => Ok(ConstrainedValue::Group(G::constant(group_element)?)),
|
Expression::Group(group_element) => Ok(ConstrainedValue::Group(G::constant(*group_element)?)),
|
||||||
Expression::Implicit(value, span) => Ok(enforce_number_implicit(expected_type, value, &span)?),
|
Expression::Implicit(value, span) => Ok(enforce_number_implicit(expected_type, value, &span)?),
|
||||||
Expression::Integer(type_, integer, span) => Ok(ConstrainedValue::Integer(Integer::new_constant(
|
Expression::Integer(type_, integer, span) => Ok(ConstrainedValue::Integer(Integer::new_constant(
|
||||||
&type_, integer, &span,
|
&type_, integer, &span,
|
||||||
|
Loading…
Reference in New Issue
Block a user