Skip to content

Commit

Permalink
fix: remove operator
Browse files Browse the repository at this point in the history
  • Loading branch information
namn-grg committed Jul 23, 2024
1 parent 74693db commit f688c9a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bolt-contracts/src/contracts/BoltRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@ contract BoltRegistry is IBoltRegistry {
revert CooldownNotElapsed();
}

// Remove operator from the operators array
for (uint256 i = 0; i < operators.length; i++) {
if (operators[i] == msg.sender) {
operators[i] = operators[operators.length - 1];
operators.pop();
break;
}
}

delete registrants[msg.sender];

for (uint256 i = 0; i < registrant.validatorIndexes.length; i++) {
Expand Down

0 comments on commit f688c9a

Please sign in to comment.