feat: Propagate the entire result of the callback

--- don't change below this line ---
ENG-4476 Took 41 minutes
This commit is contained in:
Diana Carvalho
2025-05-02 12:47:03 +01:00
parent 750382fc6f
commit 8a7c39052d

View File

@@ -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))
}
}