Skip to content

Commit

Permalink
Fix storage layout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
oveddan committed Nov 8, 2023
1 parent 865e179 commit 16e4c71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-fireants-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zoralabs/zora-1155-contracts": patch
---

Fix broken storage layout by not including an interface on CreatorRoyaltiesControl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {IERC2981} from "@openzeppelin/contracts/interfaces/IERC2981.sol";
/// @title CreatorRoyaltiesControl
/// @author ZORA @iainnash / @tbtstl
/// @notice Contract for managing the royalties of an 1155 contract
abstract contract CreatorRoyaltiesControl is CreatorRoyaltiesStorageV1, SharedBaseConstants, ICreatorRoyaltyErrors {
abstract contract CreatorRoyaltiesControl is CreatorRoyaltiesStorageV1, SharedBaseConstants {
uint256 immutable ROYALTY_BPS_TO_PERCENT = 10_000;

/// @notice The royalty information for a given token.
Expand Down Expand Up @@ -41,7 +41,7 @@ abstract contract CreatorRoyaltiesControl is CreatorRoyaltiesStorageV1, SharedBa
}
// Don't allow setting royalties to burn address
if (configuration.royaltyRecipient == address(0) && configuration.royaltyBPS > 0) {
revert InvalidMintSchedule();
revert ICreatorRoyaltyErrors.InvalidMintSchedule();
}
royalties[tokenId] = configuration;

Expand Down

0 comments on commit 16e4c71

Please sign in to comment.