Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
geoff-vball committed Nov 27, 2024
1 parent df2dfdc commit 3ef0507
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion contracts/validator-manager/PoSValidatorManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ abstract contract PoSValidatorManager is
uint256 _weightToValueFactor;
/// @notice The reward calculator for this validator manager.
IRewardCalculator _rewardCalculator;
/// @notice The ID of the blockchain that submits uptime proofs. This must be a blockchain validated by the subnetID that this contract manages.
/// @notice The ID of the blockchain that submits uptime proofs. This must be a blockchain validated by the l1ID that this contract manages.
bytes32 _uptimeBlockchainID;
/// @notice Maps the validation ID to its requirements.
mapping(bytes32 validationID => PoSValidatorInfo) _posValidatorInfo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ enum DelegatorStatus {
* @notice weightToValueFactor is the factor used to convert validator weight to value
* @notice rewardCalculator is the reward calculator used to calculate rewards for this validator manager
* @notice uptimeBlockchainID is the ID of the blockchain that submits uptime proofs.
* This must be a blockchain validated by the subnetID that this contract manages.
* This must be a blockchain validated by the l1ID that this contract manages.
*/
struct PoSValidatorManagerSettings {
ValidatorManagerSettings baseSettings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct ValidatorChurnPeriod {

/**
* @notice Validator Manager settings, used to initialize the Validator Manager
* @notice The subnetID is the ID of the subnet that the Validator Manager is managing
* @notice The l1ID is the ID of the subnet that the Validator Manager is managing
* @notice The churnPeriodSeconds is the duration of the churn period in seconds
* @notice The maximumChurnPercentage is the maximum percentage of the total weight that can be added or removed in a single churn period
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ contract PoAValidatorManagerTest is ValidatorManagerTest {
vm.expectRevert(abi.encodeWithSelector(Initializable.InvalidInitialization.selector));
app.initialize(
ValidatorManagerSettings({
subnetID: DEFAULT_L1_ID,
l1ID: DEFAULT_L1_ID,
churnPeriodSeconds: DEFAULT_CHURN_PERIOD,
maximumChurnPercentage: DEFAULT_MAXIMUM_CHURN_PERCENTAGE
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2453,7 +2453,7 @@ abstract contract PoSValidatorManagerTest is ValidatorManagerTest {
function _defaultPoSSettings() internal pure returns (PoSValidatorManagerSettings memory) {
return PoSValidatorManagerSettings({
baseSettings: ValidatorManagerSettings({
subnetID: DEFAULT_L1_ID,
l1ID: DEFAULT_L1_ID,
churnPeriodSeconds: DEFAULT_CHURN_PERIOD,
maximumChurnPercentage: DEFAULT_MAXIMUM_CHURN_PERCENTAGE
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ contract ValidatorMessagesTest is Test {
);
ValidatorMessages.packRegisterL1ValidatorMessage(
ValidatorMessages.ValidationPeriod({
subnetID: DEFAULT_L1_ID,
l1ID: DEFAULT_L1_ID,
nodeID: DEFAULT_NODE_ID,
registrationExpiry: DEFAULT_EXPIRY,
blsPublicKey: invalidBLSKey,
Expand Down Expand Up @@ -288,7 +288,7 @@ contract ValidatorMessagesTest is Test {
});
bytes memory packed = ValidatorMessages.packConversionData(
ConversionData({
subnetID: DEFAULT_L1_ID,
l1ID: DEFAULT_L1_ID,
validatorManagerBlockchainID: DEFAULT_SUBNET_CONVERSION_ID,
validatorManagerAddress: DEFAULT_OWNER,
initialValidators: initialValidators
Expand Down Expand Up @@ -341,7 +341,7 @@ contract ValidatorMessagesTest is Test {
function _getPackedRegisterL1ValidatorMessage() internal returns (bytes memory) {
(, bytes memory packed) = ValidatorMessages.packRegisterL1ValidatorMessage(
ValidatorMessages.ValidationPeriod({
subnetID: DEFAULT_L1_ID,
l1ID: DEFAULT_L1_ID,
nodeID: DEFAULT_NODE_ID,
registrationExpiry: DEFAULT_EXPIRY,
blsPublicKey: DEFAULT_BLS_PUBLIC_KEY,
Expand Down

0 comments on commit 3ef0507

Please sign in to comment.