Skip to content

Commit

Permalink
test: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChefMist committed Nov 27, 2024
1 parent cc6ac3c commit 8d72c0e
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions test/pool-cl/position-managers/CLPositionManager.multicall.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -194,27 +194,6 @@ contract CLPositionManagerMulticallTest is Test, Permit2SignatureHelpers, PosmTe
lpm.multicall(calls);
}

// create a pool where tickSpacing is negative
// core's TickSpacingTooSmall(int24) should bubble up through Multicall
function test_multicall_bubbleRevert_core_args() public {
int24 tickSpacing = -10;
key = PoolKey({
currency0: currency0,
currency1: currency1,
fee: 0,
poolManager: manager,
hooks: IHooks(address(0)),
parameters: bytes32(uint256(int256(tickSpacing << 16) | 0x0000))
});

// Use multicall to initialize a pool
bytes[] memory calls = new bytes[](1);
calls[0] = abi.encodeWithSelector(ICLPositionManager.initializePool.selector, key, SQRT_RATIO_1_1, ZERO_BYTES);

vm.expectRevert(abi.encodeWithSelector(ICLPoolManager.TickSpacingTooSmall.selector, tickSpacing));
lpm.multicall(calls);
}

function test_multicall_initializePool_twice_andMint_succeeds() public {
key = PoolKey({
currency0: currency0,
Expand Down

0 comments on commit 8d72c0e

Please sign in to comment.