Skip to content

Conversation

@kien-ngo
Copy link
Contributor

@kien-ngo kien-ngo commented Oct 23, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR primarily focuses on updating the test cases for the erc1155 extension in the thirdweb package. It removes obsolete tests, adds new functionality tests, and modifies existing tests to improve coverage and accuracy for minting and NFT retrieval functionalities.

Detailed summary

  • Deleted several test files related to erc1155 functions.
  • Updated lazyMint.test.ts to use DROP1155_CONTRACT.
  • Added tests for isGetNFTsSupported in drop1155.test.ts and token1155.test.ts.
  • Refactored mintAdditionalSupplyToBatch.test.ts for clarity and correctness.
  • Enhanced checks for updateTokenURI and multi-token minting in token1155.test.ts.
  • Included additional assertions for owned token IDs in token1155.test.ts.

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

@changeset-bot
Copy link

changeset-bot bot commented Oct 23, 2024

⚠️ No Changeset found

Latest commit: 71aa257

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 Oct 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 Oct 23, 2024 6:40am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 23, 2024 6:40am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 23, 2024 6:40am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 23, 2024 6:40am

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 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.

@kien-ngo kien-ngo marked this pull request as ready for review October 23, 2024 05:22
Copy link
Contributor Author

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

Join @kien-ngo and the rest of your teammates on Graphite Graphite

@github-actions
Copy link
Contributor

github-actions bot commented Oct 23, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 42.81 KB (0%) 857 ms (0%) 709 ms (+30.19% 🔺) 1.6 s
thirdweb (cjs) 102.66 KB (0%) 2.1 s (0%) 1.4 s (+3.7% 🔺) 3.4 s
thirdweb (minimal + tree-shaking) 4.84 KB (0%) 97 ms (0%) 60 ms (-31.88% 🔽) 157 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 9 ms (-21.15% 🔽) 19 ms
thirdweb/react (minimal + tree-shaking) 17.33 KB (0%) 347 ms (0%) 105 ms (+38.78% 🔺) 451 ms

@codecov
Copy link

codecov bot commented Oct 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.45%. Comparing base (c32576f) to head (71aa257).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5135   +/-   ##
=======================================
  Coverage   45.45%   45.45%           
=======================================
  Files        1065     1065           
  Lines       55122    55122           
  Branches     3975     3973    -2     
=======================================
  Hits        25054    25054           
  Misses      29376    29376           
  Partials      692      692           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from c32576f
packages 40.47% <ø> (ø)

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

see 2 files with indirect coverage changes

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 23, 2024

Merge activity

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR primarily focuses on refactoring and enhancing the test coverage for the `erc1155` extension of the `thirdweb` package. It removes outdated tests, introduces new tests, and updates existing ones to improve functionality verification.

### Detailed summary
- Removed multiple test files related to `erc1155` functions.
- Updated `lazyMint.test.ts` to use `DROP1155_CONTRACT`.
- Added a test for `isGetNFTsSupported` in `drop1155.test.ts`.
- Simplified and enhanced tests in `mintAdditionalSupplyToBatch.test.ts`.
- Introduced new tests for `updateTokenURI`, minting, and `getOwnedTokenIds` in `token1155.test.ts`.

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

3 participants