-
Notifications
You must be signed in to change notification settings - Fork 621
[SDK] fix: Update contract ABI caching strategy #6356
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
[SDK] fix: Update contract ABI caching strategy #6356
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: cf2fa98 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
size-limit report 📦
|
4606540 to
c696f9c
Compare
c696f9c to
b39e658
Compare
ceedf52 to
a2b4ce7
Compare
| return (await resolveAbiFromContractApi( | ||
| contract, | ||
| contractApiBaseUrl, | ||
| )) as abi; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Network requests should be wrapped with timeout and proper error handling, and the AbortSignal should be passed to the fetch calls. The withCache utility should also handle request cancellation properly.
Spotted by Graphite Reviewer (based on CI logs)
Is this helpful? React 👍 or 👎 to let us know.
a2b4ce7 to
40784a2
Compare
40784a2 to
0c0e60f
Compare
0c0e60f to
cf2fa98
Compare

PR-Codex overview
This PR focuses on updating the caching strategy for resolving contract ABIs in the
resolve-abi.tsfile and modifying the CI workflow to run on a different Ubuntu version.Detailed summary
runs-onparameter in.github/workflows/CI.ymlfromubuntu-latesttoubuntu-latest-8across multiple jobs.withCachefor caching in theresolveContractAbifunction inpackages/thirdweb/src/contract/actions/resolve-abi.ts.ABI_RESOLUTION_CACHEimplementation.