From be65c890bb18440ab22f442e5fea3d242300e5e2 Mon Sep 17 00:00:00 2001 From: TAMARA LIPOWSKI Date: Tue, 15 Apr 2025 14:28:30 -0400 Subject: [PATCH] fix: Calldata size for Ekubo pay callback - And doc clarification --- foundry/src/executors/EkuboExecutor.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/foundry/src/executors/EkuboExecutor.sol b/foundry/src/executors/EkuboExecutor.sol index e4de97b..25d40ab 100644 --- a/foundry/src/executors/EkuboExecutor.sol +++ b/foundry/src/executors/EkuboExecutor.sol @@ -189,8 +189,8 @@ contract EkuboExecutor is mstore(add(free, 52), shl(96, sender)) mstore(add(free, 72), shl(248, transferType)) - // 4 (selector) + 32 (token) + 16 (amount) + 20 (recipient) + 1 (transferType) = 73 - if iszero(call(gas(), target, 0, free, 132, 0, 0)) { + // 4 (selector) + 32 (token) + 16 (amount) + 20 (sender) + 1 (transferType) = 73 + if iszero(call(gas(), target, 0, free, 73, 0, 0)) { returndatacopy(0, 0, returndatasize()) revert(0, returndatasize()) }