Skip to content

Commit

Permalink
Add setProposerExecutor to IDualGovernance. Fix test assume
Browse files Browse the repository at this point in the history
  • Loading branch information
Psirex committed Dec 6, 2024
1 parent 0bd250f commit ef21895
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions contracts/interfaces/IDualGovernance.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ interface IDualGovernance is IGovernance, ITiebreaker {
function getStateDetails() external view returns (StateDetails memory stateDetails);

function registerProposer(address proposer, address executor) external;
function setProposerExecutor(address proposerAccount, address newExecutor) external;
function unregisterProposer(address proposer) external;
function isRegisteredProposer(address account) external view returns (bool);
function getProposer(address account) external view returns (Proposers.Proposer memory proposer);
Expand Down
1 change: 1 addition & 0 deletions test/unit/DualGovernance.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2312,6 +2312,7 @@ contract DualGovernanceUnitTests is UnitTest {
}

function testFuzz_setResealCommittee_RevertOn_InvalidResealCommittee(address newResealCommittee) external {
vm.assume(_dualGovernance.getResealCommittee() != newResealCommittee);
_executor.execute(
address(_dualGovernance),
0,
Expand Down

0 comments on commit ef21895

Please sign in to comment.