From 1f3ac71c20a2ee01bd4d9769db8e2b83f4d3e895 Mon Sep 17 00:00:00 2001 From: defistar Date: Thu, 11 Jul 2024 15:11:34 +0530 Subject: [PATCH] feat: CCIP-2612 set code inline comments for trialExecute error handling --- contracts/src/v0.8/ccip/offRamp/EVM2EVMMultiOffRamp.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/contracts/src/v0.8/ccip/offRamp/EVM2EVMMultiOffRamp.sol b/contracts/src/v0.8/ccip/offRamp/EVM2EVMMultiOffRamp.sol index d0a24a1b72..88b234b7c3 100644 --- a/contracts/src/v0.8/ccip/offRamp/EVM2EVMMultiOffRamp.sol +++ b/contracts/src/v0.8/ccip/offRamp/EVM2EVMMultiOffRamp.sol @@ -472,6 +472,7 @@ contract EVM2EVMMultiOffRamp is ITypeAndVersion, MultiOCR3Base { try this.executeSingleMessage(message, offchainTokenData) {} catch (bytes memory err) { // return the message execution state as FAILURE and the revert data + // Max length of revert data is Router.MAX_RET_BYTES, max length of err is 4 + Router.MAX_RET_BYTES return (Internal.MessageExecutionState.FAILURE, err); } // If message execution succeeded, no CCIP receiver return data is expected, return with empty bytes.