Skip to content

Commit c805406

Browse files
committed
script: remove upgrade rns unified
1 parent e4a5930 commit c805406

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

script/20240516-revoke-roles/02_Revoke_Roles.s.sol

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ contract Migration__01_Revoke_Roles is Migration {
4646
_ronController = RONRegistrarController(loadContract(Contract.RONRegistrarController.key()));
4747
_ownedMulticaller = OwnedMulticaller(loadContract(Contract.OwnedMulticaller.key()));
4848

49-
_upgradeProxy(Contract.RNSUnified.key());
50-
5149
address[] memory contracts = new address[](5);
5250
contracts[0] = address(_domainPrice);
5351
contracts[1] = address(_ronController);
@@ -80,10 +78,11 @@ contract Migration__01_Revoke_Roles is Migration {
8078

8179
_ownedMulticaller.multicall(tos, callDatas, values);
8280

83-
uint256 length;
81+
uint256 length = contracts.length;
8482

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

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

9493
// Duke will do this manually
9594
// Ownable(loadContract(Contract.OwnedMulticaller.key())).transferOwnership(multisig);
95+
console.log(
96+
"Duke will renounce his owner role of contract:",
97+
vm.getLabel(loadContract(Contract.OwnedMulticaller.key())),
98+
"manually"
99+
);
96100
// Ownable(loadContract(Contract.RNSReverseRegistrar.key())).transferOwnership(multisig);
101+
console.log(
102+
"Duke will renounce his owner role of contract:",
103+
vm.getLabel(loadContract(Contract.RNSReverseRegistrar.key())),
104+
"manually"
105+
);
97106

98107
vm.stopBroadcast();
99108
}

0 commit comments

Comments
 (0)