Skip to content

Commit

Permalink
refactor: disallow nonzero supply royalty
Browse files Browse the repository at this point in the history
  • Loading branch information
kulkarohan authored and oveddan committed Oct 17, 2023
1 parent d7291b9 commit edbab40
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ abstract contract CreatorRoyaltiesControl is CreatorRoyaltiesStorageV1, SharedBa
}

function _updateRoyalties(uint256 tokenId, RoyaltyConfiguration memory configuration) internal {
// Don't allow 100% supply royalties
if (configuration.royaltyMintSchedule == 1) {
// Deprecate supply royalty support
if (configuration.royaltyMintSchedule != 0) {
revert InvalidMintSchedule();
}
// Don't allow setting royalties to burn address
Expand Down

0 comments on commit edbab40

Please sign in to comment.