Skip to content

Commit 8df2e4a

Browse files
authored
Fix Constructor bug in zkEVM Contracts (#59)
1 parent 04ec461 commit 8df2e4a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

contracts/royalty-enforcement/RoyaltyEnforced.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ abstract contract RoyaltyEnforced is
5656
function setRoyaltyAllowlistRegistry(
5757
address _royaltyAllowlist
5858
) public onlyRole(DEFAULT_ADMIN_ROLE) {
59+
_setRoyaltyAllowlistRegistry(_royaltyAllowlist);
60+
}
61+
62+
function _setRoyaltyAllowlistRegistry(address _royaltyAllowlist) internal {
5963
if (
6064
!IERC165(_royaltyAllowlist).supportsInterface(
6165
type(IRoyaltyAllowlist).interfaceId

contracts/token/erc721/preset/ImmutableERC721PermissionedMintable.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ contract ImmutableERC721PermissionedMintable is ImmutableERC721Base {
4040
// Initialize state variables
4141
_setDefaultRoyalty(_receiver, _feeNumerator);
4242
_grantRole(DEFAULT_ADMIN_ROLE, owner);
43-
setRoyaltyAllowlistRegistry(_royaltyAllowlist);
43+
_setRoyaltyAllowlistRegistry(_royaltyAllowlist);
4444
baseURI = baseURI_;
4545
contractURI = contractURI_;
4646
}

0 commit comments

Comments
 (0)