We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dcad6e commit c05b8ddCopy full SHA for c05b8dd
contracts/utils/FHESafeMath.sol
@@ -57,8 +57,8 @@ library FHESafeMath {
57
}
58
59
/**
60
- * @dev Try to subtract `a` and `b`. If the operation is successful, `success` will be true and `res`
61
- * will be the difference of `a` and `b`. Otherwise, `success` will be false, and `res` will be 0.
+ * @dev Try to subtract `b` from `a`. If the operation is successful, `success` will be true and `res`
+ * will be `a - b`. Otherwise, `success` will be false, and `res` will be 0.
62
*/
63
function trySub(euint64 a, euint64 b) internal returns (ebool success, euint64 res) {
64
if (!FHE.isInitialized(b)) {
0 commit comments