Skip to content

Commit

Permalink
chore: typo with BlockNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
8sunyuan committed Dec 8, 2023
1 parent 213a957 commit e313d34
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/BLSSignatureChecker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ contract BLSSignatureChecker is IBLSSignatureChecker {
for (uint i = 0; i < quorumNumbers.length; i++) {
if (staleStakesForbidden) {
require(
registryCoordinator.quorumUpdateBlocknumber(uint8(quorumNumbers[i])) + delegation.withdrawalDelayBlocks() <= block.number,
registryCoordinator.quorumUpdateBlockNumber(uint8(quorumNumbers[i])) + delegation.withdrawalDelayBlocks() <= block.number,
"BLSSignatureChecker.checkSignatures: StakeRegistry updates must be within withdrawalDelayBlocks window"
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/RegistryCoordinator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ contract RegistryCoordinator is EIP712, Initializable, IRegistryCoordinator, ISo
/// @notice whether the salt has been used for an operator churn approval
mapping(bytes32 => bool) public isChurnApproverSaltUsed;
/// @notice mapping from quorum number to the latest block that all quorums were updated all at once
mapping(uint8 => uint256) public quorumUpdateBlocknumber;
mapping(uint8 => uint256) public quorumUpdateBlockNumber;


/// @notice the dynamic-length array of the registries this coordinator is coordinating
Expand Down Expand Up @@ -321,8 +321,8 @@ contract RegistryCoordinator is EIP712, Initializable, IRegistryCoordinator, ISo
}

// Update timestamp that all operators in quorum have been updated all at once
quorumUpdateBlocknumber[quorumNumber] = block.number;
emit QuorumBlocknumberUpdated(quorumNumber, block.number);
quorumUpdateBlockNumber[quorumNumber] = block.number;
emit QuorumBlockNumberUpdated(quorumNumber, block.number);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/interfaces/IRegistryCoordinator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface IRegistryCoordinator {
event EjectorUpdated(address prevEjector, address newEjector);

/// @notice emitted when all the operators for a quorum are updated at once
event QuorumBlocknumberUpdated(uint8 indexed quorumNumber, uint256 blocknumber);
event QuorumBlockNumberUpdated(uint8 indexed quorumNumber, uint256 blocknumber);

// DATA STRUCTURES
enum OperatorStatus
Expand Down Expand Up @@ -139,5 +139,5 @@ interface IRegistryCoordinator {
function numRegistries() external view returns (uint256);

/// @notice returns the blocknumber the quorum was last updated all at once for all operators
function quorumUpdateBlocknumber(uint8 quorumNumber) external view returns (uint256);
function quorumUpdateBlockNumber(uint8 quorumNumber) external view returns (uint256);
}
2 changes: 1 addition & 1 deletion test/mocks/RegistryCoordinatorMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ contract RegistryCoordinatorMock is IRegistryCoordinator {

function deregisterOperator(bytes calldata quorumNumbers, bytes calldata) external {}

function quorumUpdateBlocknumber(uint8 quorumNumber) external view returns (uint256) {}
function quorumUpdateBlockNumber(uint8 quorumNumber) external view returns (uint256) {}
}

0 comments on commit e313d34

Please sign in to comment.