You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not able to inherit the latest version of smart contract verifier for Groth16 in another contract. The reason being that verifyProof() function executes entirely in assembly. On calling this function from another function, all the subsequent statements are marked as "Unreachable code". Tested this with foundry. For this refactor, it started working correctly:
Unfortunately, this is a common snarkjs limitation, you may check this template that has been rewritten to memory to allow for inheritance and verify() function calls in the same context.
I am not able to inherit the latest version of smart contract verifier for Groth16 in another contract. The reason being that
verifyProof()
function executes entirely in assembly. On calling this function from another function, all the subsequent statements are marked as "Unreachable code". Tested this with foundry. For this refactor, it started working correctly:The text was updated successfully, but these errors were encountered: