Skip to content

Commit cbc0de4

Browse files
authored
Merge pull request #10 from dadadave80:chore/change-initializers-to-public
chore: change initializer's function visibility to public
2 parents e7242c7 + 9e3b5d3 commit cbc0de4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/initializers/ERC165Init.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ contract ERC165Init {
1313
/// @notice Initialize the contract with the ERC165 interface support.
1414
/// @dev This function is called during the diamond cut process to set up
1515
/// the initial state of the contract.
16-
function initErc165() external {
16+
function initErc165() public {
1717
DiamondStorage storage ds = LibDiamond._diamondStorage();
1818
/// @dev type(ERC165).interfaceId
1919
ds.supportedInterfaces[0x01ffc9a7] = true;

src/initializers/MultiInit.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ contract MultiInit {
1515
/// @dev Reverts if `_addresses.length != _calldata.length`. Each address is called via delegatecall using LibDiamond._initializeDiamondCut.
1616
/// @param _addresses The list of initializer contract addresses
1717
/// @param _calldata The list of encoded function calls for each initializer
18-
function multiInit(address[] calldata _addresses, bytes[] calldata _calldata) external {
18+
function multiInit(address[] calldata _addresses, bytes[] calldata _calldata) public {
1919
uint256 addressesLength = _addresses.length;
2020
if (addressesLength != _calldata.length) {
2121
revert AddressAndCalldataLengthDoNotMatch();

0 commit comments

Comments
 (0)