diff --git a/snapshots/PositionManagerTest.json b/snapshots/PositionManagerTest.json new file mode 100644 index 00000000..18fcc100 --- /dev/null +++ b/snapshots/PositionManagerTest.json @@ -0,0 +1,3 @@ +{ + "position manager initcode hash (without constructor params, as uint256)": "81827502601055975118808937107769364319765058198432540518516360048852193272922" +} \ No newline at end of file diff --git a/test/position-managers/PositionManager.t.sol b/test/position-managers/PositionManager.t.sol index a0dc970d..89066316 100644 --- a/test/position-managers/PositionManager.t.sol +++ b/test/position-managers/PositionManager.t.sol @@ -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, "");