Skip to content

Commit ff9ed29

Browse files
committed
unicode
1 parent b00444c commit ff9ed29

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

script/RevokeRecallRole.s.sol

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -143,21 +143,21 @@ contract RevokeRoleScript is Script {
143143
if (!recall.hasRole(recall.ADMIN_ROLE(), msg.sender)) {
144144
revert CallerNotAdmin(msg.sender);
145145
}
146-
console.log(" Caller has ADMIN_ROLE");
146+
console.log("[OK] Caller has ADMIN_ROLE");
147147

148148
// Check if account has the role
149149
if (!recall.hasRole(role, account)) {
150150
revert AccountDoesNotHaveRole(account, role);
151151
}
152-
console.log(" Account has the role");
152+
console.log("[OK] Account has the role");
153153

154154
// Safety check: prevent self-revocation of ADMIN_ROLE unless explicitly allowed
155155
if (role == recall.ADMIN_ROLE() && account == msg.sender) {
156156
bool allowSelfRevoke = vm.envOr("ALLOW_SELF_ADMIN_REVOKE", false);
157157
if (!allowSelfRevoke) {
158158
revert CannotRevokeSelfAdmin();
159159
}
160-
console.log("WARNING: Revoking ADMIN_ROLE from yourself!");
160+
console.log("[WARNING] Revoking ADMIN_ROLE from yourself!");
161161
}
162162

163163
// Display current role status
@@ -171,7 +171,7 @@ contract RevokeRoleScript is Script {
171171
vm.stopBroadcast();
172172

173173
console.log("");
174-
console.log(" Role revoked successfully");
174+
console.log("[OK] Role revoked successfully");
175175
console.log("");
176176
console.log("Updated Role Status:");
177177
displayRoleStatus(recall, account);
@@ -257,17 +257,17 @@ contract BatchRevokeScript is Script {
257257
require(allowSelfRevoke, "Cannot revoke ADMIN_ROLE from yourself");
258258
}
259259
recall.revokeRole(recall.ADMIN_ROLE(), account);
260-
console.log(" Revoked ADMIN_ROLE");
260+
console.log("[OK] Revoked ADMIN_ROLE");
261261
}
262262

263263
if (revokeMinter && recall.hasRole(recall.MINTER_ROLE(), account)) {
264264
recall.revokeRole(recall.MINTER_ROLE(), account);
265-
console.log(" Revoked MINTER_ROLE");
265+
console.log("[OK] Revoked MINTER_ROLE");
266266
}
267267

268268
if (revokePauser && recall.hasRole(recall.PAUSER_ROLE(), account)) {
269269
recall.revokeRole(recall.PAUSER_ROLE(), account);
270-
console.log(" Revoked PAUSER_ROLE");
270+
console.log("[OK] Revoked PAUSER_ROLE");
271271
}
272272

273273
vm.stopBroadcast();
@@ -327,21 +327,21 @@ contract MultiAccountRevokeScript is Script {
327327
if (role == recall.ADMIN_ROLE() && account == msg.sender) {
328328
bool allowSelfRevoke = vm.envOr("ALLOW_SELF_ADMIN_REVOKE", false);
329329
if (!allowSelfRevoke) {
330-
console.log(" Skipping: Cannot revoke ADMIN_ROLE from yourself");
330+
console.log(" [WARNING] Skipping: Cannot revoke ADMIN_ROLE from yourself");
331331
continue;
332332
}
333333
}
334334

335335
recall.revokeRole(role, account);
336-
console.log(" Role revoked");
336+
console.log(" [OK] Role revoked");
337337
} else {
338-
console.log(" Skipping: Account does not have the role");
338+
console.log(" [WARNING] Skipping: Account does not have the role");
339339
}
340340
}
341341

342342
vm.stopBroadcast();
343343
console.log("");
344-
console.log(" Multi-account revocation completed");
344+
console.log("[OK] Multi-account revocation completed");
345345
}
346346

347347
function getRoleHash(Recall recall, string memory roleType) internal view returns (bytes32) {

0 commit comments

Comments
 (0)