Skip to content

Commit

Permalink
Merge pull request #630 from ava-labs/validator-manager-readme
Browse files Browse the repository at this point in the history
Update ReadMe Language based on ACP-77 Updates
  • Loading branch information
cam-schultz authored Oct 31, 2024
2 parents 59959f4 + e361fc0 commit 7564686
Show file tree
Hide file tree
Showing 18 changed files with 667 additions and 836 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

185 changes: 0 additions & 185 deletions contracts/validator-manager/MessageSpec.md

This file was deleted.

6 changes: 3 additions & 3 deletions contracts/validator-manager/PoSValidatorManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ abstract contract PoSValidatorManager is

// Unpack the Warp message
(bytes32 messageValidationID, uint64 nonce,) = ValidatorMessages
.unpackSubnetValidatorWeightMessage(_getPChainWarpMessage(messageIndex).payload);
.unpackL1ValidatorWeightMessage(_getPChainWarpMessage(messageIndex).payload);

if (validationID != messageValidationID) {
revert InvalidValidationID(delegator.validationID);
Expand Down Expand Up @@ -664,7 +664,7 @@ abstract contract PoSValidatorManager is

// Submit the message to the Warp precompile.
WARP_MESSENGER.sendWarpMessage(
ValidatorMessages.packSubnetValidatorWeightMessage(
ValidatorMessages.packL1ValidatorWeightMessage(
delegator.validationID, validator.messageNonce, validator.weight
)
);
Expand All @@ -691,7 +691,7 @@ abstract contract PoSValidatorManager is
// Unpack the Warp message
WarpMessage memory warpMessage = _getPChainWarpMessage(messageIndex);
(bytes32 validationID, uint64 nonce,) =
ValidatorMessages.unpackSubnetValidatorWeightMessage(warpMessage.payload);
ValidatorMessages.unpackL1ValidatorWeightMessage(warpMessage.payload);

if (delegator.validationID != validationID) {
revert InvalidValidationID(validationID);
Expand Down
Loading

0 comments on commit 7564686

Please sign in to comment.