-
Notifications
You must be signed in to change notification settings - Fork 619
test: add environment check for ERC1155 mintToBatch tests #5115
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
test: add environment check for ERC1155 mintToBatch tests #5115
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. Join @joaquim-verges and the rest of your teammates on |
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5115 +/- ##
=======================================
Coverage 45.29% 45.29%
=======================================
Files 1059 1059
Lines 54754 54754
Branches 3956 3959 +3
=======================================
+ Hits 24802 24803 +1
+ Misses 29261 29260 -1
Partials 691 691
*This pull request uses carry forward flags. Click here to find out more. |
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR modifies the test for the `mintToBatch` function in the `ERC1155 Edition` to include conditional execution based on the presence of a `TW_SECRET_KEY`. It also refactors the test structure, improving readability and organization.
### Detailed summary
- Changed `describe` to conditionally run based on `process.env.TW_SECRET_KEY`.
- Refactored the test structure for `mintToBatch`.
- Moved the `sendAndConfirmTransaction` call inside the test.
- Added detailed NFT validation after minting.
- Removed redundant code and improved clarity.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
9af525b to
40aeb52
Compare
Merge activity
|

Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR refactors the test for the
mintToBatchfunction in theERC1155 Editionmodule, enhancing its structure and clarity. It modifies the test to run conditionally based on the presence of a secret key and organizes the minting logic more effectively.Detailed summary
describeto run conditionally withprocess.env.TW_SECRET_KEY.mintToBatch.accountto the contract deployment parameters.