Skip to content

Commit

Permalink
chore: nits
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Dec 10, 2024
1 parent 1095cd5 commit 2e543fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bolt-contracts/src/contracts/BoltManagerV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {IBoltManagerV3} from "../interfaces/IBoltManagerV3.sol";
/// See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
/// To validate the storage layout, use the Openzeppelin Foundry Upgrades toolkit.
/// You can also validate manually with forge: forge inspect <contract> storage-layout --pretty
contract BoltManagerV2 is IBoltManagerV2, OwnableUpgradeable, UUPSUpgradeable {
contract BoltManagerV3 is IBoltManagerV3, OwnableUpgradeable, UUPSUpgradeable {
using EnumerableSet for EnumerableSet.AddressSet;
using EnumerableMapV2 for EnumerableMapV2.OperatorMap;
using OperatorMapWithTimeV2 for EnumerableMapV2.OperatorMap;
Expand Down
8 changes: 8 additions & 0 deletions bolt-contracts/test/BoltManager.Symbiotic.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -375,4 +375,12 @@ contract BoltManagerSymbioticTest is Test {
vm.expectRevert(abi.encodeWithSelector(ValidatorsLib.ValidatorDoesNotExist.selector, pubkeyHash));
manager.getProposerStatus(pubkeyHash);
}

function testCalculateSubnetwork() public {
address network_ = 0xb017002D8024d8c8870A5CECeFCc63887650D2a4;
uint96 identifier_ = 0;

bytes32 subnetwork_ = network_.subnetwork(identifier_);
assertEq(subnetwork_, 0xb017002D8024d8c8870A5CECeFCc63887650D2a4000000000000000000000000);
}
}

0 comments on commit 2e543fd

Please sign in to comment.