LayerZero-Labs / LayerZero-v2

Other
542 stars 327 forks source link

inconsistency about isPeer funciton visibility #2

Closed TheGreatHB closed 6 months ago

TheGreatHB commented 9 months ago

https://github.com/LayerZero-Labs/LayerZero-v2/blob/432db51666878f147ceaf1c46d230f344430c78e/oapp/contracts/oft/OFTCore.sol#L316-L324

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

DanL0 commented 6 months ago

Comment has been changed.

https://github.com/LayerZero-Labs/LayerZero-v2/blob/142846c3d6d51e3c2a0852c41b4c2b63fcda5a0a/oapp/contracts/oft/OFTCore.sol#L290