Skip to content

Commit

Permalink
fix coverage compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
oveddan committed Sep 12, 2023
1 parent fbde89a commit 75b1a59
Showing 1 changed file with 6 additions and 30 deletions.
36 changes: 6 additions & 30 deletions test/premint/ZoraCreator1155Preminter.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -485,43 +485,19 @@ contract ZoraCreator1155PreminterTest is ForkDeploymentConfig, Test {
);

address firstContractAddress = preminter.getContractAddress(firstContractConfig);
uint256 firstResultTokenId = _signAndExecutePremint(
firstContractConfig,
premintConfig,
creatorPrivateKey,
chainId,
premintExecutor,
quantityToMint,
comment
);
uint256 tokenId = _signAndExecutePremint(firstContractConfig, premintConfig, creatorPrivateKey, chainId, premintExecutor, quantityToMint, comment);

assertEq(IZoraCreator1155(firstContractAddress).balanceOf(premintExecutor, firstResultTokenId), quantityToMint);
assertEq(IZoraCreator1155(firstContractAddress).balanceOf(premintExecutor, tokenId), quantityToMint);

premintConfig.uid = secondUid;
uint256 secondResultTokenId = _signAndExecutePremint(
firstContractConfig,
premintConfig,
creatorPrivateKey,
chainId,
premintExecutor,
quantityToMint,
comment
);
tokenId = _signAndExecutePremint(firstContractConfig, premintConfig, creatorPrivateKey, chainId, premintExecutor, quantityToMint, comment);

assertEq(IZoraCreator1155(firstContractAddress).balanceOf(premintExecutor, secondResultTokenId), quantityToMint);
assertEq(IZoraCreator1155(firstContractAddress).balanceOf(premintExecutor, tokenId), quantityToMint);

address secondContractAddress = preminter.getContractAddress(secondContractConfig);
uint256 thirdResultTokenId = _signAndExecutePremint(
secondContractConfig,
premintConfig,
creatorPrivateKey,
chainId,
premintExecutor,
quantityToMint,
comment
);
tokenId = _signAndExecutePremint(secondContractConfig, premintConfig, creatorPrivateKey, chainId, premintExecutor, quantityToMint, comment);

assertEq(IZoraCreator1155(secondContractAddress).balanceOf(premintExecutor, thirdResultTokenId), quantityToMint);
assertEq(IZoraCreator1155(secondContractAddress).balanceOf(premintExecutor, tokenId), quantityToMint);
}

function test_premintCanOnlyBeExecutedAfterStartDate(uint8 startDate, uint8 currentTime) external {
Expand Down

0 comments on commit 75b1a59

Please sign in to comment.