Skip to content

Commit

Permalink
code hash snap
Browse files Browse the repository at this point in the history
  • Loading branch information
snreynolds committed Dec 12, 2024
1 parent 26dd146 commit 9778afa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions snapshots/PositionManagerTest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"position manager initcode hash (without constructor params, as uint256)": "81827502601055975118808937107769364319765058198432540518516360048852193272922"
}
7 changes: 7 additions & 0 deletions test/position-managers/PositionManager.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ contract PositionManagerTest is Test, PosmTestSetup, LiquidityFuzzers {
approvePosmFor(alice);
}

function test_posm_initcodeHash() public {
vm.snapshotValue(
"position manager initcode hash (without constructor params, as uint256)",
uint256(keccak256(abi.encodePacked(vm.getCode("PositionManager.sol:PositionManager"))))
);
}

function test_modifyLiquidities_reverts_deadlinePassed() public {
PositionConfig memory config = PositionConfig({poolKey: key, tickLower: 0, tickUpper: 60});
bytes memory calls = getMintEncoded(config, 1e18, ActionConstants.MSG_SENDER, "");
Expand Down

0 comments on commit 9778afa

Please sign in to comment.