Skip to content

Commit

Permalink
pse uses new circuit api input to compute number of public inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
jp4g committed Aug 1, 2023
1 parent 2bb3180 commit 5ce3619
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ impl SmartContract for PseHalo2 {
)
.unwrap();

//get
// get number of public inputs used in circuit
let num_instance = circuit.public_inputs().0.len();

// generate Yul verifier and return
Ok(gen_evm_verifier(&params, &vk, vec![0]))
// generate Yul verifier and return
Ok(gen_evm_verifier(&params, &vk, vec![num_instance]))
}
}

0 comments on commit 5ce3619

Please sign in to comment.