Skip to content

Commit

Permalink
✅ restrict function mutability to pure
Browse files Browse the repository at this point in the history
  • Loading branch information
Flocqst committed Oct 16, 2024
1 parent f4714f9 commit 2748539
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/utils/TestHelpers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ contract TestHelpers {
uint256 expected,
uint256 actual,
uint256 tolerancePercent
) internal {
) internal pure {
uint256 tolerance = (expected * tolerancePercent) / 100;
assert(actual >= expected - tolerance && actual <= expected + tolerance);
}
Expand Down
2 changes: 1 addition & 1 deletion test/utils/mocks/ArbGasInfoMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ contract ArbGasInfoMock {
}

/// @notice Get ArbOS's estimate of the L1 basefee in wei
function getL1BaseFeeEstimate() external view returns (uint256) {
function getL1BaseFeeEstimate() external pure returns (uint256) {
return 10;
}
}

0 comments on commit 2748539

Please sign in to comment.