I'm having problem debugging my ZkProgram, which looks like this:
export const FinalizeRound2 = ZkProgram({
name: 'finalize-round-2',
publicInput: PublicInput,
publicOutput: PublicOutput,
methods: {
firstStep: {
privateInputs: [...],
method(...) {...}
},
nextStep: {
privateInputs: [...],
method(...) {
...
Provable.log('Inside-proof logic is correct!');
return new PublicOutput(...);
}
},
This ZkProgram is for a recursive update, the firstStep method works well, but the nextStep throws an exception without any stack trace (other bugs I met when develop ZkApp have specific stack trace), as in the attached photo. I want to ask if anyone had came across a similar problem before as I have no clue what is causing this 🙂
Also, all the logic in my nextStep method is correct as all the asserts were passed and the final log before return was run. Apperciate your helps 😁