Skip to content

Commit

Permalink
Removed dao constitution
Browse files Browse the repository at this point in the history
  • Loading branch information
yahgwai committed Oct 7, 2024
1 parent d4e204e commit 315f7f2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ coverage :; forge coverage
gas :; forge test --gas-report
gas-check :; forge snapshot --check --tolerance 1
snapshot :; forge snapshot
test-unit :; forge test -vvv
test-unit :; ARB_RPC_URL=https://arb1.arbitrum.io/rpc forge test -vvv
clean :; forge clean
fmt :; forge fmt
gen-network :; yarn gen:network
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ contract RotateMembersUpgradeAction {
address public immutable secCouncilManagerImpl;
uint256 public immutable minRotationPeriod;
address public immutable minRotationPeriodSetter;
// CHRIS: TODO: set the dao constitution hash here
bytes32 public immutable daoConstitutionHash = keccak256("testy");


constructor(IL2AddressRegistry _l2AddressRegistry, address _secCouncilManagerImpl, uint256 _minRotationPeriod, address _minRotationPeriodSetter) {
l2AddressRegistry = _l2AddressRegistry;
secCouncilManagerImpl = _secCouncilManagerImpl;
Expand All @@ -31,12 +29,5 @@ contract RotateMembersUpgradeAction {

require(minRotationPeriod == secCouncilManager.minRotationPeriod(), "RotateMembersUpgradeAction: Min rotation period not set");
require(IAccessControlUpgradeable(address(secCouncilManager)).hasRole(secCouncilManager.MIN_ROTATION_PERIOD_SETTER_ROLE(), minRotationPeriodSetter), "RotateMembersUpgradeAction: Min rotation period setter not set");

IArbitrumDAOConstitution arbitrumDaoConstitution = l2AddressRegistry.arbitrumDAOConstitution();
arbitrumDaoConstitution.setConstitutionHash(daoConstitutionHash);
require(
arbitrumDaoConstitution.constitutionHash() == daoConstitutionHash,
"RotateMembersUpgradeAction: new constitution hash not set"
);
}
}
2 changes: 0 additions & 2 deletions test/gov-actions/RotateMembersUpgradeAction.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ contract RotateMembersUpgradeActionTest is Test {
UpgradeExecutor arbOneUe = UpgradeExecutor(0xCF57572261c7c2BCF21ffD220ea7d1a27D40A827);
IArbitrumDAOConstitution constitution =
IArbitrumDAOConstitution(0x1D62fFeB72e4c360CcBbacf7c965153b00260417);
bytes32 newConstitutionHash = keccak256("testy");

function setUp() public {
string memory arbRpc = vm.envOr("ARB_RPC_URL", string(""));
Expand Down Expand Up @@ -65,7 +64,6 @@ contract RotateMembersUpgradeActionTest is Test {
"Min rotation period setter not set"
);
assertEq(_getImplementation(), newImplementation, "implementation not set");
assertEq(constitution.constitutionHash(), newConstitutionHash, "constitution hash not set");
}

function _getImplementation() internal view returns (address) {
Expand Down

0 comments on commit 315f7f2

Please sign in to comment.