From bc7b94e54b3c5a0dc16c905f0494711d7df1be6e Mon Sep 17 00:00:00 2001 From: diana Date: Tue, 26 Mar 2024 17:34:22 -0400 Subject: [PATCH] use correct key in test (#530) use correct key in test --- test/PoolManagerInitialize.t.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/PoolManagerInitialize.t.sol b/test/PoolManagerInitialize.t.sol index 75bef2ab5..56108d126 100644 --- a/test/PoolManagerInitialize.t.sol +++ b/test/PoolManagerInitialize.t.sol @@ -49,7 +49,7 @@ contract PoolManagerInitializeTest is Test, Deployers, GasSnapshot { }); } - function test_initialize(PoolKey memory key0, uint160 sqrtPriceX96) public { + function test_fuzz_initialize(PoolKey memory key0, uint160 sqrtPriceX96) public { // Assumptions tested in Pool.t.sol sqrtPriceX96 = uint160(bound(sqrtPriceX96, TickMath.MIN_SQRT_RATIO, TickMath.MAX_SQRT_RATIO - 1)); @@ -69,7 +69,7 @@ contract PoolManagerInitializeTest is Test, Deployers, GasSnapshot { vm.expectRevert(abi.encodeWithSelector(Hooks.HookAddressNotValid.selector, address(key0.hooks))); manager.initialize(key0, sqrtPriceX96, ZERO_BYTES); } else if ( - (key.fee & SwapFeeLibrary.DYNAMIC_FEE_FLAG == 0) && (key0.fee & SwapFeeLibrary.STATIC_FEE_MASK > 1000000) + (key0.fee & SwapFeeLibrary.DYNAMIC_FEE_FLAG == 0) && (key0.fee & SwapFeeLibrary.STATIC_FEE_MASK > 1000000) ) { vm.expectRevert(abi.encodeWithSelector(SwapFeeLibrary.FeeTooLarge.selector)); manager.initialize(key0, sqrtPriceX96, ZERO_BYTES);