Shadow Zarith exception-raising function in the environment
Context
This MR is, like !9521 (closed), about making the protocol safer by avoiding involuntary calls to exception-raising functions from the Zarith library. Unlike !9521 (closed), the shadowing happens in the environment instead of the protocol.
In this MR, only one function is handled: Z.ediv_rem
which raises an exception in case of division by zero. Replacing other exception-raising functions by tzresult ones will be the topic of future MRs.
Manually testing the MR
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rst
for the protocol and the environment,CHANGES.rst
at the root of the repository for everything else). -
Select suitable reviewers using the Reviewers
field below. -
Select as Assignee
the next person who should take action on that MR
Edited by Raphaël Cauderlier