diff --git a/src/MintERC1155.sol b/src/MintERC1155.sol index b8e05e4..08be62c 100644 --- a/src/MintERC1155.sol +++ b/src/MintERC1155.sol @@ -50,6 +50,8 @@ contract MintERC1155 is ERC1155SupplyUpgradeable, OwnableUpgradeable, ERC2981Upg string public imageURI; /// @notice Contract level description for `contractURI` string public description; + ///@notice Contract level banner for `contractURI` + string public bannerURI; constructor(address minter) { _disableInitializers(); @@ -169,9 +171,7 @@ contract MintERC1155 is ERC1155SupplyUpgradeable, OwnableUpgradeable, ERC2981Upg return json; } - function supportsInterface( - bytes4 interfaceId - ) + function supportsInterface(bytes4 interfaceId) public view virtual @@ -185,6 +185,7 @@ contract MintERC1155 is ERC1155SupplyUpgradeable, OwnableUpgradeable, ERC2981Upg string memory name_, string memory imageURI_, string memory description_, + string memory bannerURI_, address royaltyReceiver, uint16 royaltyAmountBps ) @@ -195,6 +196,7 @@ contract MintERC1155 is ERC1155SupplyUpgradeable, OwnableUpgradeable, ERC2981Upg name = name_; imageURI = imageURI_; description = description_; + bannerURI = bannerURI_; emit ContractURIUpdated(); } @@ -207,6 +209,8 @@ contract MintERC1155 is ERC1155SupplyUpgradeable, OwnableUpgradeable, ERC2981Upg LibString.escapeJSON(imageURI), '","description":"', LibString.escapeJSON(description), + '","banner_image":"', + LibString.escapeJSON(bannerURI), '"}' ); @@ -253,6 +257,6 @@ contract MintERC1155 is ERC1155SupplyUpgradeable, OwnableUpgradeable, ERC2981Upg } function VERSION() external pure returns (string memory) { - return "1.1.0"; + return "1.2.0"; } } diff --git a/src/NFTMint.sol b/src/NFTMint.sol index 0b43408..48a5db3 100644 --- a/src/NFTMint.sol +++ b/src/NFTMint.sol @@ -300,6 +300,6 @@ contract NFTMint is Ownable { } function VERSION() external pure returns (string memory) { - return "1.1.0"; + return "1.2.0"; } } diff --git a/test/MintERC1155.t.sol b/test/MintERC1155.t.sol index 2ee860b..4ac9b2a 100644 --- a/test/MintERC1155.t.sol +++ b/test/MintERC1155.t.sol @@ -59,7 +59,9 @@ contract MintERC1155Test is TestBase, LintJSON { function test_setContractInfo() external { vm.expectEmit(true, true, true, true); emit ContractURIUpdated(); - token.setContractInfo("MyTestContract", "https://example.com/image.png", "New description", address(this), 100); + token.setContractInfo( + "MyTestContract", "https://example.com/image.png", "New description", "the banner", address(this), 100 + ); assertEq(token.name(), "MyTestContract"); assertEq(token.imageURI(), "https://example.com/image.png");