Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
hensha256 authored Dec 12, 2024
2 parents f25b644 + af463bc commit 65af27f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions snapshots/PoolManagerTest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"erc20 collect protocol fees": "57500",
"native collect protocol fees": "59643",
"poolManager bytecode size": "24009",
"poolManager initcode hash (without constructor params, as uint256)": "19281018184167079101887460999643277467915809731640262058315305465805214934776",
"removeLiquidity with empty hook": "130613",
"removeLiquidity with native token": "112523",
"simple addLiquidity": "161276",
Expand Down
7 changes: 7 additions & 0 deletions test/PoolManager.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ contract PoolManagerTest is Test, Deployers {
vm.snapshotValue("poolManager bytecode size", address(manager).code.length);
}

function test_initcodeHash() public {
vm.snapshotValue(
"poolManager initcode hash (without constructor params, as uint256)",
uint256(keccak256(type(PoolManager).creationCode))
);
}

function test_addLiquidity_failsIfNotInitialized() public {
vm.expectRevert(Pool.PoolNotInitialized.selector);
modifyLiquidityRouter.modifyLiquidity(uninitializedKey, LIQUIDITY_PARAMS, ZERO_BYTES);
Expand Down

0 comments on commit 65af27f

Please sign in to comment.