Update forge and change visibility in fuzz tests (#5103)
Co-authored-by: cairo <cairoeth@protonmail.com>
This commit is contained in:
@ -9,7 +9,11 @@ import {Governor} from "@openzeppelin/contracts/governance/Governor.sol";
|
||||
contract GovernorInternalTest is Test, Governor {
|
||||
constructor() Governor("") {}
|
||||
|
||||
function testValidDescriptionForProposer(string memory description, address proposer, bool includeProposer) public {
|
||||
function testValidDescriptionForProposer(
|
||||
string memory description,
|
||||
address proposer,
|
||||
bool includeProposer
|
||||
) public view {
|
||||
if (includeProposer) {
|
||||
description = string.concat(description, "#proposer=", Strings.toHexString(proposer));
|
||||
}
|
||||
@ -20,7 +24,7 @@ contract GovernorInternalTest is Test, Governor {
|
||||
string memory description,
|
||||
address commitProposer,
|
||||
address actualProposer
|
||||
) public {
|
||||
) public view {
|
||||
vm.assume(commitProposer != actualProposer);
|
||||
description = string.concat(description, "#proposer=", Strings.toHexString(commitProposer));
|
||||
assertFalse(_isValidDescriptionForProposer(actualProposer, description));
|
||||
|
||||
Reference in New Issue
Block a user