-
Notifications
You must be signed in to change notification settings - Fork 359
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
feat: enable smart account chain switching between zk/non-zk #5250
feat: enable smart account chain switching between zk/non-zk #5250
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: b14c460 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
Your org has enabled the Graphite merge queue for merging into mainAdd 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. |
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @joaquim-verges and the rest of your teammates on Graphite |
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5250 +/- ##
==========================================
- Coverage 45.43% 45.36% -0.07%
==========================================
Files 1067 1067
Lines 55435 55434 -1
Branches 4019 3991 -28
==========================================
- Hits 25185 25147 -38
- Misses 29558 29596 +38
+ Partials 692 691 -1
*This pull request uses carry forward flags. Click here to find out more.
|
Problem solved
Fixes CNCT-2148
Fixes #5224
PR-Codex overview
This PR introduces a patch for
thirdweb
to enhance smart accounts by allowing them to switch between zk and non-zk chains. It modifies theisZkSyncChain
function and updates thesmartWallet
function to incorporate this new chain-switching capability.Detailed summary
thirdweb
to allow chain switching.isZkSyncChain
function to remove the fallback to RPC checks.smartWallet
function to first check if the new chain is a zkSync chain before checking if the factory contract is deployed.