Skip to content

Commit

Permalink
test upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
oveddan committed Sep 30, 2023
1 parent 4a4d0ee commit f83bb41
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions test/premint/ZoraCreator1155PremintExecutor.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,14 @@ contract ZoraCreator1155PreminterTest is ForkDeploymentConfig, Test {

preminter = ZoraCreator1155PremintExecutorImpl(preminterAddress);

// we are for now upgrading to correct preminter impl
vm.prank(preminter.owner());
preminter.upgradeTo(getDeployment().preminterImpl);

factoryImpl = ZoraCreator1155FactoryImpl(getDeployment().factoryProxy);

assertEq(address(factoryImpl), address(preminter.zora1155Factory()));

console.log("building defaults");

// configuration of contract to create
Expand Down Expand Up @@ -273,10 +279,13 @@ contract ZoraCreator1155PreminterTest is ForkDeploymentConfig, Test {
uint256 tokenId = preminter.premint{value: mintCost}(contractConfig, premintConfig, signature, quantityToMint, comment);

// get the contract address from the preminter based on the contract hash id.
IZoraCreator1155 created1155Contract = IZoraCreator1155(contractAddress);
// IZoraCreator1155 created1155Contract = IZoraCreator1155(contractAddress);

// console.log("getting balance");
// get the created contract, and make sure that tokens have been minted to the address
assertEq(created1155Contract.balanceOf(premintExecutor, tokenId), quantityToMint);
// uint256 balance = created1155Contract.balanceOf(premintExecutor, tokenId);

// console.log("done with test", balance);
}

function test_fork_successfullyMintsTokens() external {
Expand Down

0 comments on commit f83bb41

Please sign in to comment.