Move abs(int256) from Math to SafeMath (#3110)

Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
(cherry picked from commit 3eb2d43b06)
Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com>
This commit is contained in:
Hadrien Croubois
2022-01-14 23:27:04 +01:00
parent a8a08bef58
commit fdfd9726e1
7 changed files with 32 additions and 32 deletions

View File

@ -16,4 +16,8 @@ contract SignedMathMock {
function average(int256 a, int256 b) public pure returns (int256) {
return SignedMath.average(a, b);
}
function abs(int256 n) public pure returns (uint256) {
return SignedMath.abs(n);
}
}