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: improve ABI resolution fallback #4753

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented Sep 23, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

The focus of this PR is to fix the ABI resolution fallback mechanism in the resolve-abi.ts file.

Detailed summary

  • Removed unused imports
  • Updated ABI resolution logic using new functions
  • Improved error handling for empty bytecodes
  • Refactored the merging and filtering of ABI arrays

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

Copy link

vercel bot commented Sep 23, 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 23, 2024 2:27am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 23, 2024 2:27am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 23, 2024 2:27am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 23, 2024 2:27am

Copy link

changeset-bot bot commented Sep 23, 2024

🦋 Changeset detected

Latest commit: 1133ccc

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

graphite-app bot commented Sep 23, 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
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @joaquim-verges and the rest of your teammates on Graphite Graphite

@joaquim-verges joaquim-verges marked this pull request as ready for review September 23, 2024 00:06
Copy link
Contributor

github-actions bot commented Sep 23, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 41.89 KB (-4.21% 🔽) 838 ms (-4.21% 🔽) 559 ms (+42.74% 🔺) 1.4 s
thirdweb (cjs) 101.38 KB (+0.47% 🔺) 2.1 s (+0.47% 🔺) 926 ms (-4.61% 🔽) 3 s
thirdweb (minimal + tree-shaking) 4.82 KB (0%) 97 ms (0%) 112 ms (+234.03% 🔺) 209 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 133 ms (+961.5% 🔺) 143 ms
thirdweb/react (minimal + tree-shaking) 16.73 KB (0%) 335 ms (0%) 116 ms (-18.16% 🔽) 451 ms

Copy link

codecov bot commented Sep 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.06%. Comparing base (3eef910) to head (1133ccc).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4753      +/-   ##
==========================================
- Coverage   49.06%   49.06%   -0.01%     
==========================================
  Files        1054     1054              
  Lines       56856    56860       +4     
  Branches     3890     3888       -2     
==========================================
+ Hits        27899    27900       +1     
- Misses      28324    28327       +3     
  Partials      633      633              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 3eef910
packages 45.13% <100.00%> (-0.01%) ⬇️

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

Files with missing lines Coverage Δ
...kages/thirdweb/src/contract/actions/resolve-abi.ts 94.70% <100.00%> (-0.27%) ⬇️

... and 1 file with indirect coverage changes

Copy link

graphite-app bot commented Sep 23, 2024

Merge activity

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on fixing ABI resolution fallback in `resolve-abi.ts`.

### Detailed summary
- Removed unnecessary imports
- Updated ABI resolution logic with new imports
- Improved handling of root ABI merging
- Enhanced efficiency in joining ABIs

> ✨ 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants