@@ -262,14 +262,14 @@ contract Manager is
262
262
recipientChain,
263
263
endpointInstructions[registeredEndpointIndex],
264
264
managerMessage,
265
- _getSibling (recipientChain)
265
+ getSibling (recipientChain)
266
266
);
267
267
}
268
268
}
269
269
270
270
function isMessageApproved (bytes32 digest ) public view returns (bool ) {
271
271
uint8 threshold = getThreshold ();
272
- return _messageAttestations (digest) >= threshold && threshold > 0 ;
272
+ return messageAttestations (digest) >= threshold && threshold > 0 ;
273
273
}
274
274
275
275
function _setEndpointAttestedToMessage (bytes32 digest , uint8 index ) internal {
@@ -562,7 +562,7 @@ contract Manager is
562
562
563
563
/// @dev Verify that the sibling address saved for `sourceChainId` matches the `siblingAddress`.
564
564
function _verifySibling (uint16 sourceChainId , bytes32 siblingAddress ) internal view {
565
- if (_getSibling (sourceChainId) != siblingAddress) {
565
+ if (getSibling (sourceChainId) != siblingAddress) {
566
566
revert InvalidSibling (sourceChainId, siblingAddress);
567
567
}
568
568
}
@@ -702,7 +702,7 @@ contract Manager is
702
702
return _getMessageAttestationsStorage ()[digest].executed;
703
703
}
704
704
705
- function _getSibling (uint16 chainId_ ) internal view returns (bytes32 ) {
705
+ function getSibling (uint16 chainId_ ) public view returns (bytes32 ) {
706
706
return _getSiblingsStorage ()[chainId_];
707
707
}
708
708
@@ -755,7 +755,7 @@ contract Manager is
755
755
}
756
756
757
757
// @dev Count the number of attestations from enabled endpoints for a given message.
758
- function _messageAttestations (bytes32 digest ) internal view returns (uint8 count ) {
758
+ function messageAttestations (bytes32 digest ) public view returns (uint8 count ) {
759
759
return countSetBits (_getMessageAttestations (digest));
760
760
}
761
761
0 commit comments