Skip to content

Commit ae656d9

Browse files
Krishang NadgaudaKrishang Nadgauda
Krishang Nadgauda
authored and
Krishang Nadgauda
committed
cleanup script comments
1 parent 401b10d commit ae656d9

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

scripts/deploy/byocSetup.ts

+7-10
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers";
55
import { TWRegistry, ContractMetadataRegistry, ContractDeployer, ContractPublisher } from "typechain";
66

77
/**
8-
* NOTE: This deploy script is written for Polygon-Mumbai.
98
*
10-
* There is a mock `TWRegistry` deployed on Polygon-Mumbai for the purposes of Byoc testing.
9+
* There is a mock `TWRegistry` deployed on testnets for the purposes of thirdweb deploy testing.
1110
*
1211
* This script does the following:
13-
* (1) deploys `contracts/ByocRegistry` and `contracts/ByocFactory`.
14-
* (2) grants `OPERATOR_ROLE` in `TWRegistry` to the deployed `ByocFactory`.
15-
* (3) verifies deployed contracts.
12+
* (1) deploys `contracts/ContractMetadataRegistry` and `contracts/ContractDeployer`.
13+
* (2) grants `OPERATOR_ROLE` in `TWRegistry` to the deployed `ContractDeployer`.
14+
* (3) grants `OPERATOR_ROLE` in `ContractMetadataRegistry` to the deployed `ContractDeployer`.
15+
* (4) verifies deployed contracts.
1616
*/
1717

1818
async function verify(address: string, args: any[]) {
@@ -32,11 +32,8 @@ async function main() {
3232

3333
const trustedForwarder: string = "0xc82BbE41f2cF04e3a8efA18F7032BDD7f6d98a81";
3434

35-
// const registryAddress: string = ethers.constants.AddressZero; // replace
36-
// const registry: TWRegistry = await ethers.getContractAt("TWRegistry", registryAddress);
37-
const registry: TWRegistry = await ethers.getContractFactory("TWRegistry").then(f => f.deploy(trustedForwarder));
38-
console.log("\nDeploying new TWRegistry \ntx: ", registry.deployTransaction.hash, "\naddress: ", registry.address);
39-
await registry.deployTransaction.wait();
35+
const registryAddress: string = ethers.constants.AddressZero; // REPLACE FOR CORRECT CHAIN
36+
const registry: TWRegistry = await ethers.getContractAt("TWRegistry", registryAddress);
4037

4138
const contractMetadataRegistry: ContractMetadataRegistry = await ethers
4239
.getContractFactory("ContractMetadataRegistry")

0 commit comments

Comments
 (0)