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 6, 2023
1 parent e934fb0 commit 85cb66c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/BLSRegistryCoordinatorWithIndices.sol
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ contract BLSRegistryCoordinatorWithIndices is EIP712, Initializable, IBLSRegistr
/// @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 @@ -323,8 +323,8 @@ contract BLSRegistryCoordinatorWithIndices is EIP712, Initializable, IBLSRegistr
}

// 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
2 changes: 1 addition & 1 deletion src/BLSSignatureChecker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,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
4 changes: 2 additions & 2 deletions src/interfaces/IRegistryCoordinator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface IRegistryCoordinator {
event OperatorDeregistered(address indexed operator, bytes32 indexed operatorId);

/// @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 @@ -88,5 +88,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 @@ -46,5 +46,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 85cb66c

Please sign in to comment.