Skip to content

Commit 17dfae6

Browse files
committed
update forge-std
1 parent b3bfd97 commit 17dfae6

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

foundry.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ evm_version = "cancun"
88

99
ignored_error_codes = [
1010
"license", # warning[1878]: Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
11+
3628, # Warning (3628): This contract has a payable fallback function, but no receive ether function. Consider adding a receive ether function.
1112
3860, # Warning (3860): Contract initcode size is X bytes and exceeds Y bytes (a limit introduced in Shanghai). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
1213
5159, # Warning (5159): "selfdestruct" has been deprecated. The underlying opcode will eventually undergo breaking changes, and its use is not recommended.
14+
5574, # Warning (5574): Contract code size is 24870 bytes and exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
1315
9302, # Warning (9302): Return value of low-level calls not used.
1416
]
1517

src/HuffChallenge/challenge4/Challenge4.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ contract Challenge4Test is Test {
1212
reversooor = HuffDeployer.config().deploy("HuffChallenge/challenge4/Challenge4");
1313
}
1414

15-
function testReverseDeterministic() public {
15+
function testReverseDeterministic() public view {
1616
_reverseCase("", "");
1717
_reverseCase("a", "a");
1818
_reverseCase("abc", "cba");
@@ -399,7 +399,7 @@ contract Challenge4Test is Test {
399399
_reverseCase(hex"7782d616ad0decf57a2ac92e42", hex"422ec92a7af5ec0dad16d68277");
400400
}
401401

402-
function _reverseCase(bytes memory _in, bytes memory _expectedOut) internal {
402+
function _reverseCase(bytes memory _in, bytes memory _expectedOut) internal view {
403403
(bool success, bytes memory retData) = reversooor.staticcall(_in);
404404
assertTrue(success);
405405
assertEq(retData, _expectedOut, string(abi.encodePacked("meant to reverse: ", _in)));

src/QuillCTF2022/CollatzPuzzle/CollatzPuzzleSolved.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ contract CollatzPuzzleSolved is Test {
2121
solution = ICollatzPuzzle(HuffDeployer.deploy("/QuillCTF2022/CollatzPuzzle/CollatzPuzzleSolution"));
2222
}
2323

24-
function testSolution() public {
24+
function testSolution() public view {
2525
assertEq(puzzle.callMe(address(solution)), true);
2626
}
2727
}

0 commit comments

Comments
 (0)