chore: cleanup

This commit is contained in:
royvardhan
2025-02-15 01:01:16 +05:30
parent ad91e485d3
commit 9b8175aff9
7 changed files with 8 additions and 12 deletions

View File

@@ -3,7 +3,6 @@ pragma solidity ^0.8.26;
import "@interfaces/IExecutor.sol";
import "@interfaces/ICallback.sol";
import "forge-std/console.sol";
error Dispatcher__UnapprovedExecutor();
error Dispatcher__NonContractExecutor();
@@ -83,7 +82,7 @@ contract Dispatcher {
}
function _handleCallback(bytes4 selector, bytes memory data) internal {
// Access the last 20 bytes of the bytes memory data using assembly
// Using assembly to access the last 20 bytes of the bytes memory data
address executor;
// slither-disable-next-line assembly
assembly {

View File

@@ -227,10 +227,10 @@ contract TychoRouter is
* This function will static call a verifier contract and should revert if the
* caller is not a pool.
*/
// fallback() external {
// bytes4 selector = bytes4(msg.data[:4]);
// _handleCallback(selector, msg.data[4:]);
// }
fallback() external {
bytes4 selector = bytes4(msg.data[:4]);
_handleCallback(selector, msg.data[4:]);
}
/**
* @dev Pauses the contract

View File

@@ -6,7 +6,6 @@ import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol";
import "@uniswap/v3-updated/CallbackValidationV2.sol";
import "@interfaces/ICallback.sol";
import "forge-std/console.sol";
error UniswapV3Executor__InvalidDataLength();
error UniswapV3Executor__InvalidFactory();