Skip to content

Commit

Permalink
merge in changes
Browse files Browse the repository at this point in the history
  • Loading branch information
saucepoint committed Jun 3, 2024
2 parents 0f9936e + 666faf8 commit 41619f9
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .forge-snapshots/FullRangeAddInitialLiquidity.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
311165
311137
2 changes: 1 addition & 1 deletion .forge-snapshots/FullRangeAddLiquidity.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
122974
122946
2 changes: 1 addition & 1 deletion .forge-snapshots/FullRangeRemoveLiquidity.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
110572
110544
2 changes: 1 addition & 1 deletion .forge-snapshots/FullRangeRemoveLiquidityAndRebalance.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
240050
240022
2 changes: 1 addition & 1 deletion contracts/BaseHook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ abstract contract BaseHook is IHooks, SafeCallback {
Hooks.validateHookPermissions(_this, getHookPermissions());
}

function _unlockCallback(bytes calldata data) internal override virtual returns (bytes memory) {
function _unlockCallback(bytes calldata data) internal virtual override returns (bytes memory) {
(bool success, bytes memory returnData) = address(this).call(data);
if (success) return returnData;
if (returnData.length == 0) revert LockFailure();
Expand Down
1 change: 0 additions & 1 deletion contracts/hooks/examples/FullRange.sol
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ contract FullRange is BaseHook {
function _unlockCallback(bytes calldata rawData)
internal
override
onlyByManager
returns (bytes memory)
{
CallbackData memory data = abi.decode(rawData, (CallbackData));
Expand Down
2 changes: 1 addition & 1 deletion contracts/hooks/examples/TWAMM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ contract TWAMM is BaseHook, ITWAMM {
IERC20Minimal(Currency.unwrap(token)).safeTransfer(to, amountTransferred);
}

function _unlockCallback(bytes calldata rawData) internal override(BaseHook) returns (bytes memory) {
function _unlockCallback(bytes calldata rawData) internal override returns (bytes memory) {
(PoolKey memory key, IPoolManager.SwapParams memory swapParams) =
abi.decode(rawData, (PoolKey, IPoolManager.SwapParams));

Expand Down

0 comments on commit 41619f9

Please sign in to comment.