Skip to content

Commit

Permalink
Update parameter names on ValidatorRegistry contract
Browse files Browse the repository at this point in the history
  • Loading branch information
evercoinx committed Sep 29, 2024
1 parent 86a30b9 commit a4ee1c4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions contracts/ValidatorRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,14 @@ contract ValidatorRegistry is
}

/// @notice Sets the address of MaticX.
/// @param _address - Address of MaticX
/// @param _maticX - Address of MaticX
function setMaticX(
address _address
address _maticX
) external override onlyRole(DEFAULT_ADMIN_ROLE) {
require(_address != address(0), "Zero MaticX address");
maticX = _address;
require(_maticX != address(0), "Zero MaticX address");
maticX = _maticX;

emit SetMaticX(_address);
emit SetMaticX(_maticX);
}

/// @notice Sets a new version of this contract
Expand Down
8 changes: 4 additions & 4 deletions contracts/interfaces/IValidatorRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ interface IValidatorRegistry {
event SetPreferredWithdrawalValidatorId(uint256 indexed _validatorId);

/// @notice Emitted when MaticX is set.
/// @param _address - Address of MaticX
event SetMaticX(address _address);
/// @param _maticX - Address of MaticX
event SetMaticX(address _maticX);

/// @notice Emitted when the new version of the current contract is set.
/// @param _version - Version of the current contract
Expand All @@ -48,8 +48,8 @@ interface IValidatorRegistry {
function setPreferredWithdrawalValidatorId(uint256 _validatorId) external;

/// @notice Sets the address of MaticX.
/// @param _address - Address of MaticX
function setMaticX(address _address) external;
/// @param _maticX - Address of MaticX
function setMaticX(address _maticX) external;

/// @notice Sets a new version of this contract
/// @param _version - New version of this contract
Expand Down

0 comments on commit a4ee1c4

Please sign in to comment.