Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik committed Feb 14, 2024
1 parent 4bcbda1 commit 3207979
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions packages/protocol/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ fs_permissions = [
{ access = "read", path = "./genesis" },
]

ignored_error_codes = [5574, 2394]

fuzz = { runs = 256 }

# Workaround as a fixed fuzz seed.
Expand Down
6 changes: 3 additions & 3 deletions packages/protocol/test/libs/LibFixedPointMath.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ contract LibFixedPointMathTest is TaikoTest {
assertEq(LibFixedPointMath.exp(-1e18), 367_879_441_171_442_321);
}

function testExpSmallest() pure view {
function testExpSmallest() public view {
int256 y = LibFixedPointMath.exp(-42_139_678_854_452_767_550);

console2.log("LibFixedPointMath.exp(-42139678854452767550)=", uint256(y));
}

function testExpLargest() public pure {
function testExpLargest() public view {
int256 y = LibFixedPointMath.exp(int256(uint256(LibFixedPointMath.MAX_EXP_INPUT)));
console2.log("LibFixedPointMath.exp(135305999368893231588)=", uint256(y));
}

function testExpSome() public pure {
function testExpSome() public view {
int256 y = LibFixedPointMath.exp(5e18);
console2.log("LibFixedPointMath.exp(5e18)=", uint256(y));
}
Expand Down

0 comments on commit 3207979

Please sign in to comment.