storyprotocol / protocol-periphery-v1

Periphery contract for story protocol, mainnet repo
MIT License
28 stars 20 forks source link

feat(spg): add public minting support #65

Closed sebsadface closed 1 month ago

sebsadface commented 1 month ago

Description

This PR adds public minting support for SPG functions that handle minting. It replaces the onlyCallerWithMinterRole access control modifier with onlyMintAuthorized, which checks if the caller is authorized to mint—either by having the minter role in the given SPG NFT contract or if the contract has publicMinting enabled.

Test Plan

All new and existing tests pass locally.

Related Issue