Skip to content

Commit

Permalink
Lints
Browse files Browse the repository at this point in the history
  • Loading branch information
vladbochok committed Oct 27, 2024
1 parent 80f62a5 commit f1e3b51
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions l2-contracts/contracts/ConsensusRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ contract ConsensusRegistry is IConsensusRegistry, Initializable, Ownable2StepUpg
if (deleted) {
return;
}

_snapshotValidatorIfOutdated(node);
node.validatorLatest.active = false;

emit ValidatorDeactivated(_nodeOwner);
}

Expand Down Expand Up @@ -308,10 +308,7 @@ contract ConsensusRegistry is IConsensusRegistry, Initializable, Ownable2StepUpg
/// @dev Verifies that the node owner exists in the registry.
/// @param _nodeOwner The address of the node's owner whose attester public key will be changed.
/// @param _pubKey The new ECDSA public key to assign to the node's attester.
function changeAttesterKey(
address _nodeOwner,
Secp256k1PublicKey calldata _pubKey
) external onlyOwner {
function changeAttesterKey(address _nodeOwner, Secp256k1PublicKey calldata _pubKey) external onlyOwner {
_verifyInputSecp256k1PublicKey(_pubKey);
_verifyNodeOwnerExists(_nodeOwner);
(Node storage node, bool deleted) = _getNodeAndDeleteIfRequired(_nodeOwner);
Expand Down

0 comments on commit f1e3b51

Please sign in to comment.