@@ -5,14 +5,14 @@ import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers";
5
5
import { TWRegistry , ContractMetadataRegistry , ContractDeployer , ContractPublisher } from "typechain" ;
6
6
7
7
/**
8
- * NOTE: This deploy script is written for Polygon-Mumbai.
9
8
*
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.
11
10
*
12
11
* 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.
16
16
*/
17
17
18
18
async function verify ( address : string , args : any [ ] ) {
@@ -32,11 +32,8 @@ async function main() {
32
32
33
33
const trustedForwarder : string = "0xc82BbE41f2cF04e3a8efA18F7032BDD7f6d98a81" ;
34
34
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 ) ;
40
37
41
38
const contractMetadataRegistry : ContractMetadataRegistry = await ethers
42
39
. getContractFactory ( "ContractMetadataRegistry" )
0 commit comments