Skip to content

Commit d0616c4

Browse files
committed
Fix Cronos zkevm deployments (#4815)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR adds support for the `cronos zkevm` by updating the `isZkSyncChain` check to include additional chain IDs for both the testnet and mainnet. ### Detailed summary - Updated the `isZkSyncChain` function in the file `packages/thirdweb/src/utils/any-evm/zksync/isZkSyncChain.ts`. - Added chain ID `282` for `cronos zkevm testnet`. - Added chain ID `388` for `cronos zkevm mainnet`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 88db5ea commit d0616c4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/cold-dolphins-know.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Add cronos zkevm to isZkSyncChain check

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ export function isZkSyncChain(chain: Chain) {
55
chain.id === 324 ||
66
chain.id === 300 ||
77
chain.id === 302 ||
8-
chain.id === 11124
8+
chain.id === 11124 ||
9+
chain.id === 282 || // cronos zkevm testnet
10+
chain.id === 388 // cronos zkevm mainnet
911
);
1012
}

0 commit comments

Comments
 (0)