LayerZero-Labs/LayerZero-v2

inconsistency about isPeer funciton visibility

Closed this issue · 1 comments

/**
* @dev Internal function to check if peer is considered 'trusted' by the OApp.
* @param _eid The endpoint ID to check.
* @param _peer The peer to check.
* @return Whether the peer passed is considered 'trusted' by the OApp.
*
* @dev Enables OAppPreCrimeSimulator to check whether a potential Inbound Packet is from a trusted source.
*/
function isPeer(uint32 _eid, bytes32 _peer) public view virtual override returns (bool) {

isPeer() is public function but comments say it's internal.
seem to fix comments or change the function's visibility.

Comment has been changed.

function isPeer(uint32 _eid, bytes32 _peer) public view virtual override returns (bool) {