File tree Expand file tree Collapse file tree 4 files changed +12
-15
lines changed
contract/deployment/utils Expand file tree Collapse file tree 4 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,7 @@ export async function deployCloneFactory(options: ClientAndChainAndAccount) {
167167 ...options ,
168168 contractId : "TWCloneFactory" ,
169169 constructorParams : { _trustedForwarder : forwarder . address } ,
170+ publisher : "0x6453a486d52e0EB6E79Ec4491038E2522a926936" , // TODO: use default publisher
170171 } ) ;
171172}
172173
@@ -218,7 +219,10 @@ export async function getOrDeployInfraContract(
218219 const contractMetadata = await fetchPublishedContractMetadata ( {
219220 client : options . client ,
220221 contractId : options . contractId ,
221- publisher : options . publisher ,
222+ publisher :
223+ options . contractId === "TWCloneFactory"
224+ ? "0x6453a486d52e0EB6E79Ec4491038E2522a926936" // TODO: use default publisher
225+ : options . publisher ,
222226 version : options . version ,
223227 } ) ;
224228 return getOrDeployInfraContractFromMetadata ( {
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export async function getDeployedCloneFactoryContract(args: ClientAndChain) {
2323 ...args ,
2424 contractId : "TWCloneFactory" ,
2525 constructorParams : { _trustedForwarder : forwarder . address } ,
26+ publisher : "0x6453a486d52e0EB6E79Ec4491038E2522a926936" , // TODO: use default publisher
2627 } ) ;
2728 if ( ! cloneFactory ) {
2829 return null ;
Original file line number Diff line number Diff line change @@ -46,7 +46,10 @@ export async function getDeployedInfraContract(
4646 const contractMetadata = await fetchPublishedContractMetadata ( {
4747 client : options . client ,
4848 contractId : options . contractId ,
49- publisher : options . publisher ,
49+ publisher :
50+ options . contractId === "TWCloneFactory"
51+ ? "0x6453a486d52e0EB6E79Ec4491038E2522a926936" // TODO: use default publisher
52+ : options . publisher ,
5053 version : options . version ,
5154 } ) ;
5255 return getDeployedInfraContractFromMetadata ( {
Original file line number Diff line number Diff line change @@ -149,7 +149,6 @@ export async function deployContractfromDeployMetadata(
149149 initializeParams,
150150 initializeData,
151151 deployMetadata,
152- isSuperchainInterop, // TODO: Remove this once the updated Clone Factory has been published
153152 isCrosschain,
154153 implementationConstructorParams,
155154 modules,
@@ -223,20 +222,12 @@ export async function deployContractfromDeployMetadata(
223222 version : deployMetadata . version ,
224223 } ) ;
225224
226- // TODO: remove this once the modified version of TWCloneFactory
227- // has been published under the thirdweb wallet
228- const modifiedCloneFactoryContract = getContract ( {
229- client,
230- address : "0xB83db4b940e4796aA1f53DBFC824B9B1865835D5" , // only deployed on OP and zora testnets
231- chain,
232- } ) ;
233-
234225 if ( isCrosschain ) {
235226 return deployViaAutoFactory ( {
236227 client,
237228 chain,
238229 account,
239- cloneFactoryContract : modifiedCloneFactoryContract ,
230+ cloneFactoryContract,
240231 implementationAddress : implementationContract . address ,
241232 initializeData,
242233 salt,
@@ -256,9 +247,7 @@ export async function deployContractfromDeployMetadata(
256247 client,
257248 chain,
258249 account,
259- cloneFactoryContract : isSuperchainInterop // TODO: remove this once the updated clone factory is publsihed
260- ? modifiedCloneFactoryContract
261- : cloneFactoryContract ,
250+ cloneFactoryContract,
262251 initializeTransaction,
263252 salt,
264253 } ) ;
You can’t perform that action at this time.
0 commit comments