From 9e843f52133a8079ec7b7c8fe7ec626fff2904ef Mon Sep 17 00:00:00 2001 From: Yash <72552910+kumaryash90@users.noreply.github.com> Date: Thu, 19 Oct 2023 06:03:33 +0530 Subject: [PATCH] Update deploy script (#547) update deploy script --- .../deploy-deterministic-std-chains.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/scripts/deploy-prebuilt-deterministic/deploy-deterministic-std-chains.ts b/scripts/deploy-prebuilt-deterministic/deploy-deterministic-std-chains.ts index d1bbafd42..2e961fa87 100644 --- a/scripts/deploy-prebuilt-deterministic/deploy-deterministic-std-chains.ts +++ b/scripts/deploy-prebuilt-deterministic/deploy-deterministic-std-chains.ts @@ -18,7 +18,7 @@ import { DEFAULT_CHAINS, apiMap, chainIdApiKey } from "./constants"; ////// To run this script: `npx ts-node scripts/deploy-prebuilt-deterministic/deploy-deterministic-std-chains.ts` ////// ///// MAKE SURE TO PUT IN THE RIGHT CONTRACT NAME HERE AFTER PUBLISHING IT ///// //// THE CONTRACT SHOULD BE PUBLISHED WITH THE NEW PUBLISH FLOW //// -const publishedContractName = "AccountExtension"; +const publishedContractName = "MarketplaceV3"; const publisherAddress: string = "deployer.thirdweb.eth"; const deployerKey: string = process.env.PRIVATE_KEY as string; const secretKey: string = process.env.THIRDWEB_SECRET_KEY as string; @@ -47,7 +47,14 @@ async function main() { // const chainId = (await sdk.getProvider().getNetwork()).chainId; try { - const implAddr = await getThirdwebContractAddress(publishedContractName, chain.chainId, sdk.storage); + const implAddr = await getThirdwebContractAddress( + publishedContractName, + chain.chainId, + sdk.storage, + "latest", + sdk.options.clientId, + sdk.options.secretKey, + ); if (implAddr) { console.log(`implementation ${implAddr} already deployed on chainId: ${chain.slug}`); console.log(); @@ -76,6 +83,8 @@ async function main() { sdk.getProvider(), sdk.storage, create2FactoryAddress, + sdk.options.clientId, + sdk.options.secretKey, ); if (await isContractDeployed(cloneFactoryAddress, sdk.getProvider())) { console.log(`-- TWCloneFactory already present at ${cloneFactoryAddress}`); @@ -87,6 +96,8 @@ async function main() { sdk.storage, sdk.getProvider(), create2FactoryAddress, + sdk.options.clientId, + sdk.options.secretKey, ); const implementationAddress = deploymentInfo.find(i => i.type === "implementation")?.transaction