Skip to content

Commit

Permalink
fix: read fee from config for fork test
Browse files Browse the repository at this point in the history
  • Loading branch information
kulkarohan authored and iainnash committed Sep 26, 2023
1 parent 8dd51cf commit 7b43696
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/factory/ZoraCreator1155Factory_Fork.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {ZoraCreatorFixedPriceSaleStrategy} from "../../src/minters/fixed-price/Z
import {ForkDeploymentConfig} from "../../src/deployment/DeploymentConfig.sol";

contract ZoraCreator1155FactoryForkTest is ForkDeploymentConfig, Test {
uint256 constant mintFee = 0.000777 ether;
uint96 constant tokenPrice = 1 ether;
uint256 constant quantityToMint = 3;
uint256 constant tokenMaxSupply = 100;
Expand Down Expand Up @@ -120,10 +119,10 @@ contract ZoraCreator1155FactoryForkTest is ForkDeploymentConfig, Test {
IZoraCreator1155 target = _createErc1155Contract(factory);

// ** 2. Setup a new token with the fixed price sales strategy and the token price **
uint96 tokenPrice = 1 ether;
uint256 tokenId = _setupToken(target, fixedPrice, tokenPrice);

// ** 3. Mint on that contract **
uint256 mintFee = getChainConfig().mintFeeAmount;

// mint 3 tokens
uint256 valueToSend = quantityToMint * (tokenPrice + mintFee);
Expand Down

0 comments on commit 7b43696

Please sign in to comment.