Skip to content

Commit

Permalink
update implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
Jun1on committed Jun 26, 2024
1 parent 532f60c commit eaabe37
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
5 changes: 3 additions & 2 deletions contracts/middleware/BaseMiddleware.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ contract BaseMiddleware is Proxy {
}

// yo how do i remove this warning
// receive() external payable {
// }
receive() external payable {
_delegate(_implementation());
}
}
5 changes: 1 addition & 4 deletions test/shared/implementation/BaseMiddlewareImplementation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ contract BaseMiddlewareImplementation is BaseMiddleware {
constructor(IPoolManager _poolManager, address _implementation, BaseMiddleware addressToEtch)
BaseMiddleware(_poolManager, _implementation)
{
//Hooks.validateHookPermissions(addressToEtch, getHookPermissions());
Hooks.validateHookPermissions(IHooks(address(addressToEtch)), BaseHook(_implementation).getHookPermissions());
}

// make this a no-op in testing
//function validateHookAddress(BaseHook _this) internal pure override {}
}
8 changes: 2 additions & 6 deletions test/shared/implementation/FeeTakingLiteImplementation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@ import {BaseHook} from "../../../contracts/BaseHook.sol";
import {FeeTakingLite} from "../../middleware/FeeTakingLite.sol";
import {IPoolManager} from "@uniswap/v4-core/src/interfaces/IPoolManager.sol";
import {Hooks} from "@uniswap/v4-core/src/libraries/Hooks.sol";
import {IHooks} from "@uniswap/v4-core/src/interfaces/IHooks.sol";

contract FeeTakingLiteImplementation is FeeTakingLite {
constructor(IPoolManager _poolManager, FeeTakingLite addressToEtch) FeeTakingLite(_poolManager) {
//Hooks.validateHookPermissions(addressToEtch, getHookPermissions());
}

// make this a no-op in testing
//function validateHookAddress(BaseHook _this) internal pure override {}
constructor(IPoolManager _poolManager, FeeTakingLite addressToEtch) FeeTakingLite(_poolManager) {}
}

0 comments on commit eaabe37

Please sign in to comment.