Remove code in preparation for v5.0 (#4258)

Co-authored-by: Ernesto García <ernestognw@gmail.com>
Co-authored-by: Francisco <fg@frang.io>
This commit is contained in:
Hadrien Croubois
2023-05-19 22:48:05 +02:00
committed by GitHub
parent 8de6eba8a3
commit 0f10efe232
125 changed files with 701 additions and 7390 deletions

View File

@ -5,7 +5,6 @@ pragma solidity ^0.8.0;
import "forge-std/Test.sol";
import "../../../contracts/utils/math/Math.sol";
import "../../../contracts/utils/math/SafeMath.sol";
contract MathTest is Test {
// CEILDIV
@ -47,7 +46,7 @@ contract MathTest is Test {
}
function _squareBigger(uint256 value, uint256 ref) private pure returns (bool) {
(bool noOverflow, uint256 square) = SafeMath.tryMul(value, value);
(bool noOverflow, uint256 square) = Math.tryMul(value, value);
return !noOverflow || square > ref;
}