Skip to content

Commit

Permalink
rename internal checkInvalidCounterParty -> _checkInvalidChannelEnd i…
Browse files Browse the repository at this point in the history
…n dispatcher
  • Loading branch information
RnkSngh committed Sep 16, 2024
1 parent 37a1249 commit d0c9fa2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/core/Dispatcher.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -845,7 +845,7 @@ contract Dispatcher is Ownable2StepUpgradeable, UUPSUpgradeable, ReentrancyGuard
}
}

function _checkInvalidCounterParty(
function _checkInvalidChannelEnds(
string calldata localPortId,
bytes32 localChannelId,
string calldata counterPartyPortId,
Expand Down

0 comments on commit d0c9fa2

Please sign in to comment.