@@ -5,14 +5,14 @@ import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers";
55import { 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
1818async 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