Skip to content

Commit 4073440

Browse files
committed
fix deployment for zk
1 parent 7f23fd1 commit 4073440

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/thirdweb/src/extensions/prebuilts/deploy-published.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
fetchBytecodeFromCompilerMetadata,
1717
} from "../../utils/any-evm/deploy-metadata.js";
1818
import { encodeExtraDataWithUri } from "../../utils/any-evm/encode-extra-data-with-uri.js";
19+
import { isZkSyncChain } from "../../utils/any-evm/zksync/isZkSyncChain.js";
1920
import type { Hex } from "../../utils/encoding/hex.js";
2021
import type { Account } from "../../wallets/interfaces/wallet.js";
2122
import { getAllDefaultConstructorParamsForImplementation } from "./get-required-transactions.js";
@@ -213,7 +214,8 @@ export async function deployContractfromDeployMetadata(
213214

214215
if (
215216
deployMetadata.routerType === "dynamic" &&
216-
deployMetadata.defaultExtensions
217+
deployMetadata.defaultExtensions &&
218+
!isZkSyncChain(chain)
217219
) {
218220
for (const e of deployMetadata.defaultExtensions) {
219221
await getOrDeployInfraForPublishedContract({

0 commit comments

Comments
 (0)