From 8a7c39052d45ee75e81cbb267748a1fc635a8c34 Mon Sep 17 00:00:00 2001 From: Diana Carvalho Date: Fri, 2 May 2025 12:47:03 +0100 Subject: [PATCH] feat: Propagate the entire result of the callback --- don't change below this line --- ENG-4476 Took 41 minutes --- foundry/src/TychoRouter.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/foundry/src/TychoRouter.sol b/foundry/src/TychoRouter.sol index 55be637..379f0e7 100644 --- a/foundry/src/TychoRouter.sol +++ b/foundry/src/TychoRouter.sol @@ -661,8 +661,8 @@ contract TychoRouter is AccessControl, Dispatcher, Pausable, ReentrancyGuard { bytes memory result = _callHandleCallbackOnExecutor(msg.data); // slither-disable-next-line assembly assembly ("memory-safe") { - // Propagate the calculatedAmount - return(add(result, 32), 16) + // Propagate the result + return(add(result, 32), mload(result)) } }