The zkp circuits in Zeto enforces a range of the transfer amount used in the private input of proof generation. This PR makes it impossible to violate that limitation by enforcing that the total amount of mints or transfers must be less than the maximum value. This way the client application request will be rejected right away rather than finding out from the transaction revert instead.
fixes #368
The zkp circuits in Zeto enforces a range of the transfer amount used in the private input of proof generation. This PR makes it impossible to violate that limitation by enforcing that the total amount of mints or transfers must be less than the maximum value. This way the client application request will be rejected right away rather than finding out from the transaction revert instead.