Skip to content

Commit

Permalink
revert changes to deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
iainnash committed Jul 18, 2023
1 parent 856e054 commit a9e390f
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions script/UpgradeERC721DropFactory.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ contract UpgradeERC721DropFactory is ZoraDropsDeployBase {
bytes32 dropRendererCodehash = keccak256(deployment.dropMetadata.code);
// it is important for this to be _outside_ startBroadcast since this does a null deployment to
// read the latest contract code to compare versions
address dropRendererOld = address(new DropMetadataRenderer());
bytes32 newDropRendererCodehash = keccak256(address(new DropMetadataRenderer()).code);

bytes32 editionRendererCodehash = keccak256(deployment.editionMetadata.code);
Expand All @@ -38,25 +37,22 @@ contract UpgradeERC721DropFactory is ZoraDropsDeployBase {
bool deployNewDropRenderer = dropRendererCodehash != newDropRendererCodehash;
bool deployNewEditionRenderer = editionRendererCodehash != newEditionRendererCodehash;

console2.log(vm.toString(dropRendererCodehash));
console2.log(vm.toString(newDropRendererCodehash));

console2.log("Mint Fee Amount: ", chainConfig.mintFeeAmount);
console2.log("Mint Fee Recipient: ", chainConfig.mintFeeRecipient);

vm.startBroadcast();

console2.log("Setup contracts ---");

// if (deployNewDropRenderer) {
// deployment.dropMetadata = address(new DropMetadataRenderer());
// console2.log("Deployed new drop renderer to ", deployment.dropMetadata);
// }
if (deployNewDropRenderer) {
deployment.dropMetadata = address(new DropMetadataRenderer());
console2.log("Deployed new drop renderer to ", deployment.dropMetadata);
}

// if (deployNewEditionRenderer) {
// deployment.editionMetadata = address(new EditionMetadataRenderer());
// console2.log("Deployed new edition renderer to ", deployment.editionMetadata);
// }
if (deployNewEditionRenderer) {
deployment.editionMetadata = address(new EditionMetadataRenderer());
console2.log("Deployed new edition renderer to ", deployment.editionMetadata);
}

ERC721Drop dropImplementation = new ERC721Drop({
_zoraERC721TransferHelper: chainConfig.zoraERC721TransferHelper,
Expand Down

0 comments on commit a9e390f

Please sign in to comment.