Skip to content

Conversation

@kien-ngo
Copy link
Contributor

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

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR focuses on adding tests for the split functionality in the thirdweb package, specifically for the deployment and retrieval of recipient addresses and their share percentages in a split contract.

Detailed summary

  • Deleted several test files related to deploy-split and split.
  • Added a new test suite for the split contract in split.test.ts.
  • Included tests for:
    • Contract deployment (deploySplitContract).
    • Retrieving all recipient addresses (getAllRecipientsAddresses).
    • Retrieving all recipients and their share percentages (getAllRecipientsPercentages).
    • Retrieving the split percentage for an individual recipient (getRecipientSplitPercentage).

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

@vercel
Copy link

vercel bot commented Oct 24, 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 25, 2024 4:11am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 25, 2024 4:11am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 25, 2024 4:11am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 25, 2024 4:11am

@changeset-bot
Copy link

changeset-bot bot commented Oct 24, 2024

⚠️ No Changeset found

Latest commit: 4b18351

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

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 24, 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 24, 2024 09:39
Copy link
Contributor Author

kien-ngo commented Oct 24, 2024

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

@kien-ngo kien-ngo force-pushed the kien/improve-split-contract-tests branch from 5488f63 to 39ea040 Compare October 24, 2024 09:41
@github-actions
Copy link
Contributor

github-actions bot commented Oct 24, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 42.9 KB (0%) 859 ms (0%) 3 s (-22.35% 🔽) 3.9 s
thirdweb (cjs) 102.73 KB (0%) 2.1 s (0%) 6.6 s (+18.3% 🔺) 8.7 s
thirdweb (minimal + tree-shaking) 4.84 KB (0%) 97 ms (0%) 139 ms (-63.58% 🔽) 236 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 219 ms (+275.46% 🔺) 229 ms
thirdweb/react (minimal + tree-shaking) 17.34 KB (0%) 347 ms (0%) 559 ms (+46.73% 🔺) 906 ms

@codecov
Copy link

codecov bot commented Oct 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.36%. Comparing base (e8f952a) to head (4b18351).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5155   +/-   ##
=======================================
  Coverage   45.36%   45.36%           
=======================================
  Files        1068     1068           
  Lines       55230    55230           
  Branches     3971     3969    -2     
=======================================
  Hits        25055    25055           
- Misses      29482    29483    +1     
+ Partials      693      692    -1     
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from e8f952a
packages 40.38% <ø> (ø)

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

see 1 file with indirect coverage changes

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 25, 2024

Merge activity

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on adding tests for the `split` functionality of a smart contract in the `thirdweb` package, ensuring that the contract behaves as expected when deployed and queried for recipient addresses and their share percentages.

### Detailed summary
- Deleted several test files related to `deploy-split` and recipient functions.
- Introduced a new test suite for the `split` contract in `split.test.ts`.
- Added tests for:
  - Deployment of the split contract.
  - Retrieving all recipient addresses.
  - Retrieving all recipients and their share percentages.
  - Retrieving the split percentage for an individual recipient.

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