@@ -18,7 +18,7 @@ import { DEFAULT_CHAINS, apiMap, chainIdApiKey } from "./constants";
18
18
////// To run this script: `npx ts-node scripts/deploy-prebuilt-deterministic/deploy-deterministic-std-chains.ts` //////
19
19
///// MAKE SURE TO PUT IN THE RIGHT CONTRACT NAME HERE AFTER PUBLISHING IT /////
20
20
//// THE CONTRACT SHOULD BE PUBLISHED WITH THE NEW PUBLISH FLOW ////
21
- const publishedContractName = "AccountExtension " ;
21
+ const publishedContractName = "MarketplaceV3 " ;
22
22
const publisherAddress : string = "deployer.thirdweb.eth" ;
23
23
const deployerKey : string = process . env . PRIVATE_KEY as string ;
24
24
const secretKey : string = process . env . THIRDWEB_SECRET_KEY as string ;
@@ -47,7 +47,14 @@ async function main() {
47
47
// const chainId = (await sdk.getProvider().getNetwork()).chainId;
48
48
49
49
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
+ ) ;
51
58
if ( implAddr ) {
52
59
console . log ( `implementation ${ implAddr } already deployed on chainId: ${ chain . slug } ` ) ;
53
60
console . log ( ) ;
@@ -76,6 +83,8 @@ async function main() {
76
83
sdk . getProvider ( ) ,
77
84
sdk . storage ,
78
85
create2FactoryAddress ,
86
+ sdk . options . clientId ,
87
+ sdk . options . secretKey ,
79
88
) ;
80
89
if ( await isContractDeployed ( cloneFactoryAddress , sdk . getProvider ( ) ) ) {
81
90
console . log ( `-- TWCloneFactory already present at ${ cloneFactoryAddress } ` ) ;
@@ -87,6 +96,8 @@ async function main() {
87
96
sdk . storage ,
88
97
sdk . getProvider ( ) ,
89
98
create2FactoryAddress ,
99
+ sdk . options . clientId ,
100
+ sdk . options . secretKey ,
90
101
) ;
91
102
92
103
const implementationAddress = deploymentInfo . find ( i => i . type === "implementation" ) ?. transaction
0 commit comments