Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Cronos zkevm deployments #4815

Merged
merged 1 commit into from
Sep 26, 2024
Merged

Fix Cronos zkevm deployments #4815

merged 1 commit into from
Sep 26, 2024

Conversation

kumaryash90
Copy link
Member

@kumaryash90 kumaryash90 commented Sep 26, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR updates the isZkSyncChain check to include support for the cronos zkevm chains, enhancing the functionality of the thirdweb package.

Detailed summary

  • Modified the isZkSyncChain function in packages/thirdweb/src/utils/any-evm/zksync/isZkSyncChain.ts.
  • Added checks for chain.id values 282 (cronos zkevm testnet) and 388 (cronos zkevm mainnet).

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

changeset-bot bot commented Sep 26, 2024

🦋 Changeset detected

Latest commit: d0616c4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
thirdweb Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Sep 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 26, 2024 10:15pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 26, 2024 10:15pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 26, 2024 10:15pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 26, 2024 10:15pm

Copy link

graphite-app bot commented Sep 26, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Copy link
Contributor

github-actions bot commented Sep 26, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 41.93 KB (0%) 839 ms (0%) 2.6 s (-5.79% 🔽) 3.4 s
thirdweb (cjs) 101.55 KB (0%) 2.1 s (0%) 4.6 s (-6.95% 🔽) 6.6 s
thirdweb (minimal + tree-shaking) 4.82 KB (0%) 97 ms (0%) 368 ms (+141.35% 🔺) 465 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 35 ms (-59.2% 🔽) 45 ms
thirdweb/react (minimal + tree-shaking) 16.78 KB (0%) 336 ms (0%) 643 ms (-24.6% 🔽) 979 ms

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.67%. Comparing base (88db5ea) to head (d0616c4).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4815      +/-   ##
==========================================
+ Coverage   47.66%   47.67%   +0.01%     
==========================================
  Files        1051     1051              
  Lines       56714    56716       +2     
  Branches     3892     3894       +2     
==========================================
+ Hits        27032    27040       +8     
+ Misses      28995    28989       -6     
  Partials      687      687              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 88db5ea
packages 43.40% <100.00%> (+0.01%) ⬆️

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
...thirdweb/src/utils/any-evm/zksync/isZkSyncChain.ts 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

@vercel vercel bot temporarily deployed to Preview – wallet-ui September 26, 2024 22:03 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 September 26, 2024 22:03 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground September 26, 2024 22:03 Inactive
@kumaryash90 kumaryash90 added the merge-queue Adds the pull request to Graphite's merge queue. label Sep 26, 2024
Copy link

graphite-app bot commented Sep 26, 2024

Merge activity

  • Sep 26, 6:03 PM EDT: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Sep 26, 6:12 PM EDT: kumaryash90 added this pull request to the Graphite merge queue.
  • Sep 26, 6:16 PM EDT: kumaryash90 merged this pull request with the Graphite merge queue.

## 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 -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-queue Adds the pull request to Graphite's merge queue. packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants