Skip to content
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 src/ERC721ContractMetadata.sol
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ contract ERC721ContractMetadata is
// Ensure the sender is only the owner or contract itself.
_onlyOwnerOrSelf();

// Revert if the new royalty address is the zero address.
if (newInfo.royaltyAddress == address(0)) {
// Revert if the new royalty address is the zero address and basis points is non-zero.
if (newInfo.royaltyAddress == address(0) && newInfo.royaltyBps != 0) {
revert RoyaltyAddressCannotBeZeroAddress();
}

Expand Down