diff --git a/packages/1155-contracts/test/fixtures/ZoraMintsFixtures.sol b/packages/1155-contracts/test/fixtures/ZoraMintsFixtures.sol index 1aa97f71d..415ddd767 100644 --- a/packages/1155-contracts/test/fixtures/ZoraMintsFixtures.sol +++ b/packages/1155-contracts/test/fixtures/ZoraMintsFixtures.sol @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.17; + import {MockMintsManager} from "../mock/MockMints.sol"; library ZoraMintsFixtures { diff --git a/packages/1155-contracts/test/mock/MockMints.sol b/packages/1155-contracts/test/mock/MockMints.sol index 41e864540..6182b109f 100644 --- a/packages/1155-contracts/test/mock/MockMints.sol +++ b/packages/1155-contracts/test/mock/MockMints.sol @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.17; + import {ERC1155} from "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import {TokenConfig, Redemption} from "@zoralabs/mints-contracts/src/ZoraMintsTypes.sol"; import {MintsStorageBase} from "@zoralabs/mints-contracts/src/MintsStorageBase.sol"; @@ -29,7 +32,7 @@ contract MockMintsManager is IZoraMintsManager { } /// This will be moved to the Mints Manager - function mintWithERC20(address tokenAddress, uint quantity, address recipient) external returns (uint256 mintableTokenId) { + function mintWithERC20(address, uint, address) external pure returns (uint256) { revert("Not implemented"); } @@ -43,7 +46,7 @@ contract MockMintsManager is IZoraMintsManager { } } - function setDefaultMintable(address tokenAddress, uint256 tokenId) public { + function setDefaultMintable(address, uint256 tokenId) public { TokenConfig memory tokenConfig = zoraMints1155.getTokenConfig(tokenId); if (tokenConfig.price == 0) { revert("Not a token"); @@ -55,11 +58,11 @@ contract MockMintsManager is IZoraMintsManager { mintableEthToken = tokenId; } - function uri(uint256 tokenId) external view returns (string memory) { + function uri(uint256) external pure returns (string memory) { revert("Not implemented"); } - function contractURI() external view returns (string memory) { + function contractURI() external pure returns (string memory) { revert("Not implemented"); } } @@ -107,7 +110,7 @@ contract MockZoraMints1155 is ERC1155, IZoraMints1155 { } // called by the mints manager - function mintTokenWithERC20(uint256 tokenId, address tokenAddress, uint quantity, address recipient, bytes memory data) external { + function mintTokenWithERC20(uint256, address, uint, address, bytes memory) external pure { revert("Not implemented"); } @@ -175,7 +178,7 @@ contract MockZoraMints1155 is ERC1155, IZoraMints1155 { return tokenConfigs[tokenId]; } - function balanceOfAccount(address user) external view override returns (uint256) { + function balanceOfAccount(address) external pure override returns (uint256) { revert("Not implemented"); } } diff --git a/packages/1155-contracts/test/nft/ZoraCreator1155.t.sol b/packages/1155-contracts/test/nft/ZoraCreator1155.t.sol index 6e4b25a27..de823bf79 100644 --- a/packages/1155-contracts/test/nft/ZoraCreator1155.t.sol +++ b/packages/1155-contracts/test/nft/ZoraCreator1155.t.sol @@ -43,7 +43,7 @@ contract MockTransferHookReceiver is ITransferHookReceiver { hasTransfer[id] = true; } - function supportsInterface(bytes4 testInterface) external view override returns (bool) { + function supportsInterface(bytes4 testInterface) external pure override returns (bool) { return testInterface == type(ITransferHookReceiver).interfaceId; } } @@ -1677,7 +1677,6 @@ contract ZoraCreator1155Test is Test { init(); uint256 mintTokenPrice = 0.000222 ether; uint256 mintTokenId = 111; - uint256 tokenPrice = 0.001111 ether; uint256 salePrice = 2 ether; address fundsRecipient = makeAddr("fundsRecipient");