feat: add univ2 executor test with hex

This commit is contained in:
royvardhan
2025-01-29 23:10:23 +05:30
parent 0007c4924c
commit c482e21a5f
3 changed files with 17 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ contract UniswapV2Executor is IExecutor {
bool zeroForOne
)
{
if (data.length != 61) {
if (data.length < 61) {
revert UniswapV2Executor__InvalidDataLength();
}
inToken = IERC20(address(bytes20(data[0:20])));