Skip to content

Public virtual initialize() function for prebuilts #624

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions contracts/prebuilts/token/TokenERC1155.sol
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ contract TokenERC1155 is
/// @dev Only TRANSFER_ROLE holders can have tokens transferred from or to them, during restricted transfers.
bytes32 private constant TRANSFER_ROLE = keccak256("TRANSFER_ROLE");
/// @dev Only MINTER_ROLE holders can sign off on `MintRequest`s.
bytes32 private constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 internal constant MINTER_ROLE = keccak256("MINTER_ROLE");
/// @dev Only METADATA_ROLE holders can update NFT metadata.
bytes32 private constant METADATA_ROLE = keccak256("METADATA_ROLE");

Expand Down Expand Up @@ -143,7 +143,7 @@ contract TokenERC1155 is
uint128 _royaltyBps,
uint128 _platformFeeBps,
address _platformFeeRecipient
) external initializer {
) public virtual initializer {
// Initialize inherited contracts, most base-like -> most derived.
__ReentrancyGuard_init();
__EIP712_init("TokenERC1155", "1");
Expand Down
Loading