Skip to content

Commit 1b1dd55

Browse files
committed
fix types
1 parent 3c11a0b commit 1b1dd55

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

apps/dashboard/src/components/configure-networks/ConfigureNetworkForm.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export type NetworkConfigFormData = {
2828
type: "testnet" | "mainnet";
2929
icon: string;
3030
slug: string;
31+
stackType?: string;
3132
};
3233

3334
// lowercase it, replace all spaces with hyphens, and then strip all non-alphanumeric characters
@@ -71,6 +72,7 @@ export const ConfigureNetworkForm: React.FC<NetworkConfigFormProps> = ({
7172
type: editingChain?.testnet ? "testnet" : "mainnet",
7273
icon: editingChain?.icon?.url || "",
7374
slug: prefillSlug || editingChain?.slug || "",
75+
stackType: "",
7476
},
7577
mode: "onChange",
7678
});
@@ -146,6 +148,7 @@ export const ConfigureNetworkForm: React.FC<NetworkConfigFormProps> = ({
146148
format: "",
147149
},
148150
testnet: data.type === "testnet",
151+
stackType: data.stackType || "",
149152
};
150153
} else {
151154
configuredNetwork = {
@@ -170,6 +173,7 @@ export const ConfigureNetworkForm: React.FC<NetworkConfigFormProps> = ({
170173
format: "",
171174
}
172175
: undefined,
176+
stackType: data.stackType || "",
173177
};
174178
}
175179

packages/thirdweb/src/utils/any-evm/zksync/isZkSyncChain.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export async function isZkSyncChain(chain: Chain) {
1313
chain.id === 302 ||
1414
chain.id === 11124 ||
1515
chain.id === 282 || // cronos zkevm testnet
16-
chain.id === 388 // cronos zkevm mainnet
16+
chain.id === 388 || // cronos zkevm mainnet
17+
chain.id === 4654 // creator testnet
1718
) {
1819
return true;
1920
}

0 commit comments

Comments
 (0)