Skip to content

Commit

Permalink
♻️ Restrict Visibility Modifiers in Tests
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
  • Loading branch information
pcaversaccio committed Mar 12, 2024
1 parent 5811b5a commit c9ab9ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/internal/CreateX._efficientHash.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ contract CreateX_EfficientHash_Internal_Test is BaseTest {
/* TESTS */
/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

function testFuzz_MatchesTheOutputOfAHighLevelHashAndShouldNeverRevert(bytes32 a, bytes32 b) external {
function testFuzz_MatchesTheOutputOfAHighLevelHashAndShouldNeverRevert(bytes32 a, bytes32 b) external view {
// It should match the output of a high-level hash.
// It should never revert.
bytes32 expected = keccak256(abi.encodePacked(a, b));
Expand Down
2 changes: 1 addition & 1 deletion test/invariants/CreateX_Invariants.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ contract CreateX_Invariants is Test {
/* TESTS */
/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/

function statefulFuzz_EtherBalance() external {
function statefulFuzz_EtherBalance() external view {
assertEq(createXAddr.balance, createXHandler.updatedBalance(), "100");
}
}
Expand Down

0 comments on commit c9ab9ba

Please sign in to comment.