Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jun1on committed Jun 21, 2024
1 parent 7fb28ea commit cc1e3e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions contracts/middleware/MiddlewareRemove.sol
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.24;

import {Hooks} from "@uniswap/v4-core/src/libraries/Hooks.sol";
import {IPoolManager} from "@uniswap/v4-core/src/interfaces/IPoolManager.sol";
import {IHooks} from "@uniswap/v4-core/src/interfaces/IHooks.sol";
import {BalanceDelta} from "@uniswap/v4-core/src/types/BalanceDelta.sol";
import {PoolKey} from "@uniswap/v4-core/src/types/PoolKey.sol";
import {BeforeSwapDelta} from "@uniswap/v4-core/src/types/BeforeSwapDelta.sol";
import {Proxy} from "@openzeppelin/contracts/proxy/Proxy.sol";
import {BaseMiddleware} from "./BaseMiddleware.sol";
import {BaseHook} from "../BaseHook.sol";
Expand All @@ -15,7 +12,7 @@ import {BalanceDeltaLibrary} from "@uniswap/v4-core/src/types/BalanceDelta.sol";

contract MiddlewareRemove is BaseMiddleware {
bytes internal constant ZERO_BYTES = bytes("");
uint256 public constant gasLimit = 100000;
uint256 public constant gasLimit = 1000000;

constructor(IPoolManager _poolManager, address _impl) BaseMiddleware(_poolManager, _impl) {}

Expand Down
1 change: 0 additions & 1 deletion test/FeeTaking.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {Test} from "forge-std/Test.sol";
import {Hooks} from "@uniswap/v4-core/src/libraries/Hooks.sol";
import {FeeTaking} from "../contracts/hooks/examples/FeeTaking.sol";
import {FeeTakingImplementation} from "./shared/implementation/FeeTakingImplementation.sol";
import {PoolManager} from "@uniswap/v4-core/src/PoolManager.sol";
import {IPoolManager} from "@uniswap/v4-core/src/interfaces/IPoolManager.sol";
import {Deployers} from "@uniswap/v4-core/test/utils/Deployers.sol";
import {TestERC20} from "@uniswap/v4-core/src/test/TestERC20.sol";
Expand Down
3 changes: 2 additions & 1 deletion test/MiddlewareRemoveFactory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ contract MiddlewareRemoveFactoryTest is Test, Deployers {
factory = new MiddlewareRemoveFactory(manager);
}

function testVariousE() public {
function testVariousFactory() public {
FeeTakingLite feeTakingLite = new FeeTakingLite(manager);
uint160 flags =
uint160(Hooks.AFTER_SWAP_FLAG | Hooks.AFTER_SWAP_RETURNS_DELTA_FLAG | Hooks.BEFORE_REMOVE_LIQUIDITY_FLAG);
Expand Down Expand Up @@ -94,5 +94,6 @@ contract MiddlewareRemoveFactoryTest is Test, Deployers {
);

removeLiquidity(currency0, currency1, IHooks(address(middlewareRemove)), 3000, SQRT_PRICE_1_1, ZERO_BYTES);
assertEq(factory.getImplementation(hookAddress), implementation);
}
}

0 comments on commit cc1e3e7

Please sign in to comment.