Skip to content

Commit

Permalink
fix: CCIP-2612 formatting fixes for EVM2EVMMultiOffRamp
Browse files Browse the repository at this point in the history
  • Loading branch information
defistar committed Jul 10, 2024
1 parent 3c4e485 commit 536c273
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions contracts/src/v0.8/ccip/offRamp/EVM2EVMMultiOffRamp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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, "");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 536c273

Please sign in to comment.