From 536c27358d6b860fc70300054510263e7dfd27d3 Mon Sep 17 00:00:00 2001 From: defistar Date: Thu, 11 Jul 2024 01:09:58 +0530 Subject: [PATCH] fix: CCIP-2612 formatting fixes for EVM2EVMMultiOffRamp --- contracts/src/v0.8/ccip/offRamp/EVM2EVMMultiOffRamp.sol | 4 ++-- .../src/v0.8/ccip/test/offRamp/EVM2EVMMultiOffRamp.t.sol | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/contracts/src/v0.8/ccip/offRamp/EVM2EVMMultiOffRamp.sol b/contracts/src/v0.8/ccip/offRamp/EVM2EVMMultiOffRamp.sol index efd02072c3..e50e4ba8f1 100644 --- a/contracts/src/v0.8/ccip/offRamp/EVM2EVMMultiOffRamp.sol +++ b/contracts/src/v0.8/ccip/offRamp/EVM2EVMMultiOffRamp.sol @@ -466,8 +466,8 @@ contract EVM2EVMMultiOffRamp is ITypeAndVersion, MultiOCR3Base { ) internal returns (Internal.MessageExecutionState, bytes memory) { try this.executeSingleMessage(message, offchainTokenData) {} catch (bytes memory err) { - // return the message execution state as FAILURE and the revert data - return (Internal.MessageExecutionState.FAILURE, err); + // return the message execution state as FAILURE and the revert data + return (Internal.MessageExecutionState.FAILURE, err); } // If message execution succeeded, no CCIP receiver return data is expected, return with empty bytes. return (Internal.MessageExecutionState.SUCCESS, ""); diff --git a/contracts/src/v0.8/ccip/test/offRamp/EVM2EVMMultiOffRamp.t.sol b/contracts/src/v0.8/ccip/test/offRamp/EVM2EVMMultiOffRamp.t.sol index 498b77b4fb..a7e1575ede 100644 --- a/contracts/src/v0.8/ccip/test/offRamp/EVM2EVMMultiOffRamp.t.sol +++ b/contracts/src/v0.8/ccip/test/offRamp/EVM2EVMMultiOffRamp.t.sol @@ -907,9 +907,7 @@ contract EVM2EVMMultiOffRamp_executeSingleReport is EVM2EVMMultiOffRampSetup { messages[0].header.sequenceNumber, messages[0].header.messageId, Internal.MessageExecutionState.FAILURE, - abi.encodeWithSelector( - CallWithExactGas.NotEnoughGasForCall.selector - ) + abi.encodeWithSelector(CallWithExactGas.NotEnoughGasForCall.selector) ); s_offRamp.executeSingleReport(executionReport, new uint256[](0)); }