From d0c9fa2a088b93cfc627befb579ac4ab91679275 Mon Sep 17 00:00:00 2001 From: RnkSngh Date: Mon, 16 Sep 2024 10:27:29 -0400 Subject: [PATCH] rename internal checkInvalidCounterParty -> _checkInvalidChannelEnd in dispatcher --- contracts/core/Dispatcher.sol | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/core/Dispatcher.sol b/contracts/core/Dispatcher.sol index 14037f80..4f213fb2 100644 --- a/contracts/core/Dispatcher.sol +++ b/contracts/core/Dispatcher.sol @@ -218,7 +218,7 @@ contract Dispatcher is Ownable2StepUpgradeable, UUPSUpgradeable, ReentrancyGuard if (connectionHops.length != 2) { revert IBCErrors.invalidConnectionHops(); } - _checkInvalidCounterParty(local.portId, local.channelId, counterparty.portId, counterparty.channelId); + _checkInvalidChannelEnds(local.portId, local.channelId, counterparty.portId, counterparty.channelId); _getLightClientFromConnection(connectionHops[0]).verifyMembership( proof, Ibc.channelProofKey(local.portId, local.channelId), @@ -293,7 +293,7 @@ contract Dispatcher is Ownable2StepUpgradeable, UUPSUpgradeable, ReentrancyGuard revert IBCErrors.invalidConnectionHops(); } - _checkInvalidCounterParty(local.portId, local.channelId, counterparty.portId, counterparty.channelId); + _checkInvalidChannelEnds(local.portId, local.channelId, counterparty.portId, counterparty.channelId); _getLightClientFromConnection(connectionHops[0]).verifyMembership( proof, Ibc.channelProofKey(local.portId, local.channelId), @@ -358,7 +358,7 @@ contract Dispatcher is Ownable2StepUpgradeable, UUPSUpgradeable, ReentrancyGuard if (connectionHops.length < 2) { revert IBCErrors.invalidConnectionHops(); } - _checkInvalidCounterParty(local.portId, local.channelId, counterparty.portId, counterparty.channelId); + _checkInvalidChannelEnds(local.portId, local.channelId, counterparty.portId, counterparty.channelId); _getLightClientFromConnection(connectionHops[0]).verifyMembership( proof, Ibc.channelProofKey(local.portId, local.channelId), @@ -845,7 +845,7 @@ contract Dispatcher is Ownable2StepUpgradeable, UUPSUpgradeable, ReentrancyGuard } } - function _checkInvalidCounterParty( + function _checkInvalidChannelEnds( string calldata localPortId, bytes32 localChannelId, string calldata counterPartyPortId,