From 75b1a5915aaebca692fd3e6fd02a865e4da33e84 Mon Sep 17 00:00:00 2001 From: Dan Oved Date: Tue, 12 Sep 2023 16:12:43 -0700 Subject: [PATCH] fix coverage compilation issue --- test/premint/ZoraCreator1155Preminter.t.sol | 36 ++++----------------- 1 file changed, 6 insertions(+), 30 deletions(-) diff --git a/test/premint/ZoraCreator1155Preminter.t.sol b/test/premint/ZoraCreator1155Preminter.t.sol index 6d6868b06..9f4a4b60e 100644 --- a/test/premint/ZoraCreator1155Preminter.t.sol +++ b/test/premint/ZoraCreator1155Preminter.t.sol @@ -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 {