Skip to content

Conversation

@kumaryash90
Copy link
Member

@kumaryash90 kumaryash90 commented Sep 30, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR focuses on updating the isZkSyncChain function to be asynchronous and modifying several parts of the codebase to await its result. This change enhances the handling of ZkSync chains during contract deployments and transaction requirements.

Detailed summary

  • Changed isZkSyncChain to an async function.
  • Updated calls to isZkSyncChain to use await.
  • Modified contract deployment logic to handle ZkSync chains asynchronously.
  • Enhanced error handling in the new getChainStack function for fetching chain stack data.

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

@changeset-bot
Copy link

changeset-bot bot commented Sep 30, 2024

⚠️ No Changeset found

Latest commit: 6beec7a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel
Copy link

vercel bot commented Sep 30, 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 Oct 1, 2024 8:15pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 1, 2024 8:15pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 1, 2024 8:15pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 1, 2024 8:15pm

@graphite-app
Copy link
Contributor

graphite-app bot commented Sep 30, 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.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 30, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 41.91 KB (0%) 839 ms (0%) 1.6 s (+9.75% 🔺) 2.4 s
thirdweb (cjs) 101.54 KB (0%) 2.1 s (0%) 3.1 s (+26.37% 🔺) 5.1 s
thirdweb (minimal + tree-shaking) 4.82 KB (0%) 97 ms (0%) 225 ms (+49.26% 🔺) 321 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 83 ms (+165.28% 🔺) 93 ms
thirdweb/react (minimal + tree-shaking) 16.76 KB (0%) 336 ms (0%) 205 ms (-27.53% 🔽) 540 ms

@codecov
Copy link

codecov bot commented Oct 1, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 10 lines in your changes missing coverage. Please review.

Project coverage is 47.59%. Comparing base (31f371d) to head (6beec7a).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../extensions/prebuilts/get-required-transactions.ts 25.00% 3 Missing ⚠️
...thirdweb/src/utils/any-evm/zksync/isZkSyncChain.ts 90.62% 3 Missing ⚠️
.../src/contract/deployment/deploy-via-autofactory.ts 0.00% 1 Missing ⚠️
...hirdweb/src/contract/deployment/utils/bootstrap.ts 0.00% 1 Missing ⚠️
...rdweb/src/extensions/prebuilts/deploy-published.ts 0.00% 1 Missing ⚠️
packages/thirdweb/src/wallets/smart/index.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4869      +/-   ##
==========================================
+ Coverage   47.57%   47.59%   +0.02%     
==========================================
  Files        1054     1054              
  Lines       57109    57136      +27     
  Branches     3907     3914       +7     
==========================================
+ Hits        27167    27195      +28     
+ Misses      29254    29253       -1     
  Partials      688      688              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 31f371d
packages 43.34% <75.00%> (+0.03%) ⬆️

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

Files with missing lines Coverage Δ
.../src/contract/deployment/deploy-via-autofactory.ts 78.57% <0.00%> (ø)
...hirdweb/src/contract/deployment/utils/bootstrap.ts 74.17% <0.00%> (ø)
...rdweb/src/extensions/prebuilts/deploy-published.ts 79.92% <0.00%> (ø)
packages/thirdweb/src/wallets/smart/index.ts 65.24% <0.00%> (ø)
.../extensions/prebuilts/get-required-transactions.ts 63.68% <25.00%> (+0.20%) ⬆️
...thirdweb/src/utils/any-evm/zksync/isZkSyncChain.ts 91.42% <90.62%> (-8.58%) ⬇️

... and 3 files with indirect coverage changes

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 1, 2024

Merge activity

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on updating the `isZkSyncChain` function to be asynchronous and modifying various parts of the codebase to await its result. This change enhances the handling of chain identification, particularly for zkSync-related operations.

### Detailed summary
- Changed `isZkSyncChain` to an async function.
- Updated calls to `isZkSyncChain` to use `await` in several files.
- Modified the logic in `isZkSyncChain` to include additional checks for specific chain IDs.
- Introduced a new async function `getChainStack` for fetching chain stack information.

> ✨ 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

Dashboard Involves changes to the Dashboard. packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants