-
Notifications
You must be signed in to change notification settings - Fork 619
[TOOL-2924] Catch error on fail-to-load metadata #5892
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
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. |
packages/thirdweb/src/extensions/erc721/lazyMinting/read/getBatchesToReveal.ts
Show resolved
Hide resolved
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5892 +/- ##
==========================================
+ Coverage 55.34% 55.37% +0.02%
==========================================
Files 1124 1123 -1
Lines 59670 59642 -28
Branches 5054 5056 +2
==========================================
- Hits 33025 33024 -1
+ Misses 25921 25894 -27
Partials 724 724
*This pull request uses carry forward flags. Click here to find out more.
|
Merge activity
|
09c3e05 to
9bc7884
Compare

TOOL-2924
PR-Codex overview
This PR introduces changes to enhance type safety and improve the handling of optional values in the
getBatchesToRevealfunction and theNFTRevealButtoncomponent.Detailed summary
getBatchesToReveal.ts,placeholderMetadatais changed fromNFTMetadatatoNFTMetadata | undefinedfor better type handling.getBatchesToReveal.ts, an error handling mechanism is added by returningundefinedin the catch block.reveal-button.tsx, the conditional rendering is simplified to always return theMinterOnlycomponent, improving readability.