@@ -18,7 +18,7 @@ import { DEFAULT_CHAINS, apiMap, chainIdApiKey } from "./constants";
1818////// To run this script: `npx ts-node scripts/deploy-prebuilt-deterministic/deploy-deterministic-std-chains.ts` //////
1919///// MAKE SURE TO PUT IN THE RIGHT CONTRACT NAME HERE AFTER PUBLISHING IT /////
2020//// THE CONTRACT SHOULD BE PUBLISHED WITH THE NEW PUBLISH FLOW ////
21- const publishedContractName = "AccountExtension " ;
21+ const publishedContractName = "MarketplaceV3 " ;
2222const publisherAddress : string = "deployer.thirdweb.eth" ;
2323const deployerKey : string = process . env . PRIVATE_KEY as string ;
2424const secretKey : string = process . env . THIRDWEB_SECRET_KEY as string ;
@@ -47,7 +47,14 @@ async function main() {
4747 // const chainId = (await sdk.getProvider().getNetwork()).chainId;
4848
4949 try {
50- const implAddr = await getThirdwebContractAddress ( publishedContractName , chain . chainId , sdk . storage ) ;
50+ const implAddr = await getThirdwebContractAddress (
51+ publishedContractName ,
52+ chain . chainId ,
53+ sdk . storage ,
54+ "latest" ,
55+ sdk . options . clientId ,
56+ sdk . options . secretKey ,
57+ ) ;
5158 if ( implAddr ) {
5259 console . log ( `implementation ${ implAddr } already deployed on chainId: ${ chain . slug } ` ) ;
5360 console . log ( ) ;
@@ -76,6 +83,8 @@ async function main() {
7683 sdk . getProvider ( ) ,
7784 sdk . storage ,
7885 create2FactoryAddress ,
86+ sdk . options . clientId ,
87+ sdk . options . secretKey ,
7988 ) ;
8089 if ( await isContractDeployed ( cloneFactoryAddress , sdk . getProvider ( ) ) ) {
8190 console . log ( `-- TWCloneFactory already present at ${ cloneFactoryAddress } ` ) ;
@@ -87,6 +96,8 @@ async function main() {
8796 sdk . storage ,
8897 sdk . getProvider ( ) ,
8998 create2FactoryAddress ,
99+ sdk . options . clientId ,
100+ sdk . options . secretKey ,
90101 ) ;
91102
92103 const implementationAddress = deploymentInfo . find ( i => i . type === "implementation" ) ?. transaction
0 commit comments