-
Notifications
You must be signed in to change notification settings - Fork 619
[SDK] Fix upload reveal batch #5009
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 ↗︎
|
🦋 Changeset detectedLatest commit: 6faf63f 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. |
Merge activity
|
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5009 +/- ##
==========================================
+ Coverage 45.27% 45.28% +0.01%
==========================================
Files 1058 1058
Lines 54660 54670 +10
Branches 3947 3950 +3
==========================================
+ Hits 24747 24757 +10
Misses 29222 29222
Partials 691 691
*This pull request uses carry forward flags. Click here to find out more.
|
packages/thirdweb/src/extensions/erc721/lazyMinting/write/createDelayedRevealBatch.test.ts
Outdated
Show resolved
Hide resolved
packages/thirdweb/src/extensions/erc721/lazyMinting/write/createDelayedRevealBatch.test.ts
Outdated
Show resolved
Hide resolved
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on fixing the upload logic for creating delayed reveal batches in the `thirdweb` package. It improves the handling of file uploads and the calculation of starting file numbers for batches, ensuring proper functionality during NFT batch creation and reveal.
### Detailed summary
- Updated `createDelayedRevealBatch` to use `Promise.all` for concurrent uploads and token ID retrieval.
- Added logic to calculate the starting file number for batch uploads.
- Removed mock implementations for certain functions in the test file.
- Enhanced test cases to verify proper creation and revealing of NFT batches.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
ed2adba to
6faf63f
Compare
Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR focuses on fixing the upload logic in the
createDelayedRevealBatchfunction for handling delayed reveal batches in thethirdweblibrary. It enhances the functionality by ensuring proper file naming and integrates the retrieval of the next token ID.Detailed summary
createDelayedRevealBatchto usePromise.allfor concurrent uploads and token ID retrieval.startFileNumberto correctly calculate file names for batch uploads.