Skip to content

Commit

Permalink
format + lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cam-schultz committed Sep 20, 2024
1 parent 1793727 commit f73d2d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions contracts/validator-manager/ValidatorMessages.sol
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ library ValidatorMessages {
pure
returns (bytes32, bool)
{
if(input.length != 39) {
if (input.length != 39) {
revert InvalidMessageLength();
}
// Unpack the codec ID
Expand Down Expand Up @@ -430,7 +430,7 @@ library ValidatorMessages {
pure
returns (bytes32, uint64, uint64)
{
if(input.length != 54) {
if (input.length != 54) {
revert InvalidMessageLength();
}

Expand Down Expand Up @@ -530,7 +530,7 @@ library ValidatorMessages {
for (uint256 i; i < 4; ++i) {
typeID |= uint32(uint8(input[i + 2])) << uint32((8 * (3 - i)));
}

if (typeID != SUBNET_VALIDATOR_WEIGHT_UPDATE_MESSAGE_TYPE_ID) {
revert InvalidMessageType();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
} from "@avalabs/[email protected]/contracts/interfaces/IWarpMessenger.sol";
import {ValidatorMessages} from "../ValidatorMessages.sol";
import {ValidatorRegistrationInput, ValidatorStatus} from "../interfaces/IValidatorManager.sol";
import {DelegatorStatus} from "../interfaces/IPoSValidatorManager.sol";

abstract contract PoSValidatorManagerTest is ValidatorManagerTest {
uint64 public constant DEFAULT_UPTIME = uint64(100);
Expand Down

0 comments on commit f73d2d0

Please sign in to comment.