Skip to content

Commit d81f597

Browse files
authored
Bump OZ to v4.9.6 (#68)
* Bump OZ to v4.9.6 https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.9.6 * Bump forge-std * Bump solmate * Fix forge test cheat function name * Resolve compiler warnings about tests * forge fmt
1 parent d71c4e0 commit d81f597

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

lib/solmate

test/FractionalPool.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ contract FractionalPoolTest is Test {
101101
}
102102

103103
contract Deployment is FractionalPoolTest {
104-
function test_FractionalPoolDeployment() public {
104+
function test_FractionalPoolDeployment() public view {
105105
assertEq(token.name(), "Governance Token");
106106
assertEq(token.symbol(), "GOV");
107107

test/GovernorCountingFractional.t.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ contract GovernorCountingFractionalTest is Test {
185185
returns (address)
186186
{
187187
vm.assume(_addr > address(0));
188-
assumeNoPrecompiles(_addr);
188+
assumeNotPrecompile(_addr);
189189
vm.label(_addr, _name);
190190
return _addr;
191191
}
@@ -195,13 +195,13 @@ contract GovernorCountingFractionalTest is Test {
195195
nextUser = keccak256(abi.encodePacked(_addr));
196196
}
197197

198-
function _randomSupportType(uint256 salt) public view returns (uint8) {
198+
function _randomSupportType(uint256 salt) public pure returns (uint8) {
199199
return uint8(bound(salt, 0, uint8(GovernorCompatibilityBravo.VoteType.Abstain)));
200200
}
201201

202202
function _randomVoteSplit(FractionalVoteSplit memory _voteSplit)
203203
public
204-
view
204+
pure
205205
returns (FractionalVoteSplit memory)
206206
{
207207
_voteSplit.percentFor = bound(_voteSplit.percentFor, 0, 1e18);
@@ -350,7 +350,7 @@ contract GovernorCountingFractionalTest is Test {
350350
/// END HELPER FUNCTIONS
351351
/// --------------------
352352

353-
function testFuzz_Deployment(uint256 _blockNumber) public {
353+
function testFuzz_Deployment(uint256 _blockNumber) public view {
354354
assertEq(governor.name(), "Governor");
355355
assertEq(address(governor.token()), address(token));
356356
assertEq(governor.votingDelay(), 4);

0 commit comments

Comments
 (0)