fix conflicts
This commit is contained in:
parent
2a77d22151
commit
4eb7b99cc3
2 changed files with 2 additions and 3 deletions
|
@ -69,6 +69,7 @@ pub fn r1cs_program<T: Field>(prog: Prog<T>) -> (Vec<Variable>, usize, Vec<Const
|
|||
for (quad, lin) in prog.statements.iter().filter_map(|s| match s {
|
||||
Statement::Constraint(quad, lin, _) => Some((quad, lin)),
|
||||
Statement::Directive(..) => None,
|
||||
Statement::Log(..) => None,
|
||||
}) {
|
||||
for (k, _) in &quad.left.0 {
|
||||
provide_variable_idx(&mut variables, k);
|
||||
|
@ -87,6 +88,7 @@ pub fn r1cs_program<T: Field>(prog: Prog<T>) -> (Vec<Variable>, usize, Vec<Const
|
|||
for (quad, lin) in prog.statements.into_iter().filter_map(|s| match s {
|
||||
Statement::Constraint(quad, lin, _) => Some((quad, lin)),
|
||||
Statement::Directive(..) => None,
|
||||
Statement::Log(..) => None,
|
||||
}) {
|
||||
constraints.push((
|
||||
quad.left
|
||||
|
|
|
@ -28,12 +28,9 @@ describe("tests", () => {
|
|||
it("should compile", () => {
|
||||
assert.doesNotThrow(() => {
|
||||
|
||||
console.log(zokratesProvider.compile)
|
||||
|
||||
const artifacts = zokratesProvider.compile(
|
||||
"def main() -> field { return 42; }"
|
||||
);
|
||||
console.log(artifacts);
|
||||
assert.ok(artifacts !== undefined);
|
||||
assert.ok(artifacts.snarkjs === undefined);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue