[TM-372] `failCustom_` is inefficient
Description
It seems like that failCustom_
function produced the following stack of instructionsunit; push _; pair
, but it can do only one push with pair argument, so this MR
refactors failCustom_
so it uses just two instructions: PUSH
and FAILWITH
.
Related issue(s)
https://issues.serokell.io/issue/TM-372
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Ivan Gromakovskii