diff --git a/l2-contracts/contracts/ConsensusRegistry.sol b/l2-contracts/contracts/ConsensusRegistry.sol index 506b82812..d1c5e97c6 100644 --- a/l2-contracts/contracts/ConsensusRegistry.sol +++ b/l2-contracts/contracts/ConsensusRegistry.sol @@ -5,6 +5,7 @@ pragma solidity 0.8.24; import {Ownable2StepUpgradeable} from "@openzeppelin/contracts-upgradeable-v4/access/Ownable2StepUpgradeable.sol"; import {Initializable} from "@openzeppelin/contracts-upgradeable-v4/proxy/utils/Initializable.sol"; import {IConsensusRegistry} from "./interfaces/IConsensusRegistry.sol"; +import {ZeroAddress} from "./errors/L2ContractErrors.sol"; /// @author Matter Labs /// @custom:security-contact security@matterlabs.dev @@ -49,7 +50,7 @@ contract ConsensusRegistry is IConsensusRegistry, Initializable, Ownable2StepUpg function initialize(address _initialOwner) external initializer { if (_initialOwner == address(0)) { - revert InvalidInputNodeOwnerAddress(); + revert ZeroAddress(); } _transferOwnership(_initialOwner); } @@ -461,7 +462,7 @@ contract ConsensusRegistry is IConsensusRegistry, Initializable, Ownable2StepUpg function _verifyInputAddress(address _nodeOwner) private pure { if (_nodeOwner == address(0)) { - revert InvalidInputNodeOwnerAddress(); + revert ZeroAddress(); } } diff --git a/l2-contracts/contracts/interfaces/IConsensusRegistry.sol b/l2-contracts/contracts/interfaces/IConsensusRegistry.sol index 0bb4ae334..7baff4dfa 100644 --- a/l2-contracts/contracts/interfaces/IConsensusRegistry.sol +++ b/l2-contracts/contracts/interfaces/IConsensusRegistry.sol @@ -97,10 +97,8 @@ interface IConsensusRegistry { error UnauthorizedOnlyOwnerOrNodeOwner(); error NodeOwnerExists(); error NodeOwnerDoesNotExist(); - error NodeOwnerNotFound(); error ValidatorPubKeyExists(); error AttesterPubKeyExists(); - error InvalidInputNodeOwnerAddress(); error InvalidInputBLS12_381PublicKey(); error InvalidInputBLS12_381Signature(); error InvalidInputSecp256k1PublicKey();