Skip to content

Commit

Permalink
Skip royalty mint schedule check (#274)
Browse files Browse the repository at this point in the history
We dont need to check royalty mint schedule in second if / else statement
  • Loading branch information
oveddan authored Oct 18, 2023
1 parent 777254e commit 90903ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ abstract contract CreatorRoyaltiesControl is CreatorRoyaltiesStorageV1, SharedBa
revert InvalidMintSchedule();
}
// Don't allow setting royalties to burn address
if (configuration.royaltyRecipient == address(0) && (configuration.royaltyMintSchedule > 0 || configuration.royaltyBPS > 0)) {
if (configuration.royaltyRecipient == address(0) && configuration.royaltyBPS > 0) {
revert InvalidMintSchedule();
}
royalties[tokenId] = configuration;
Expand Down

0 comments on commit 90903ab

Please sign in to comment.