Skip to content

Commit

Permalink
script: remove upgrade rns unified
Browse files Browse the repository at this point in the history
  • Loading branch information
TuDo1403 committed Jul 15, 2024
1 parent 2cbc906 commit a4ec1a8
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions script/20240516-revoke-roles/02_Revoke_Roles.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ contract Migration__01_Revoke_Roles is Migration {
_ronController = RONRegistrarController(loadContract(Contract.RONRegistrarController.key()));
_ownedMulticaller = OwnedMulticaller(loadContract(Contract.OwnedMulticaller.key()));

_upgradeProxy(Contract.RNSUnified.key());

address[] memory contracts = new address[](5);
contracts[0] = address(_domainPrice);
contracts[1] = address(_ronController);
Expand Down Expand Up @@ -80,10 +78,11 @@ contract Migration__01_Revoke_Roles is Migration {

_ownedMulticaller.multicall(tos, callDatas, values);

uint256 length;
uint256 length = contracts.length;

for (uint256 i; i < length; i++) {
AccessControlEnumerable(contracts[i]).grantRole(0x0, multisig);
console.log("Duke will renounce his admin roles of contract:", vm.getLabel(contracts[i]), "manually");

assertTrue(
AccessControlEnumerable(contracts[i]).getRoleMemberCount(0x0) > 0,
Expand All @@ -93,7 +92,17 @@ contract Migration__01_Revoke_Roles is Migration {

// Duke will do this manually
// Ownable(loadContract(Contract.OwnedMulticaller.key())).transferOwnership(multisig);
console.log(
"Duke will renounce his owner role of contract:",
vm.getLabel(loadContract(Contract.OwnedMulticaller.key())),
"manually"
);
// Ownable(loadContract(Contract.RNSReverseRegistrar.key())).transferOwnership(multisig);
console.log(
"Duke will renounce his owner role of contract:",
vm.getLabel(loadContract(Contract.RNSReverseRegistrar.key())),
"manually"
);

vm.stopBroadcast();
}
Expand Down

0 comments on commit a4ec1a8

Please sign in to comment.