-
Notifications
You must be signed in to change notification settings - Fork 619
[SDK] Improve Split contract tests #5155
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 ↗︎
|
|
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. |
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
5488f63 to
39ea040
Compare
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
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
*This pull request uses carry forward flags. Click here to find out more. |
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 -->
39ea040 to
4b18351
Compare

Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR focuses on adding tests for the
splitfunctionality in thethirdwebpackage, specifically for the deployment and retrieval of recipient addresses and their share percentages in a split contract.Detailed summary
deploy-splitandsplit.splitcontract insplit.test.ts.deploySplitContract).getAllRecipientsAddresses).getAllRecipientsPercentages).getRecipientSplitPercentage).