-
Notifications
You must be signed in to change notification settings - Fork 545
Fix comment for max claimable tokens test in drop721.test.ts #7336
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: fuder.eth <[email protected]>
|
WalkthroughA comment typo was corrected in a test file related to ERC721 drop functionality. No changes were made to the logic or behavior of the code. Changes
Suggested labels
Suggested reviewers
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
@vtjl10 is attempting to deploy a commit to the thirdweb Team on Vercel. A member of the Team first needs to authorize it. |
@@ -290,7 +290,7 @@ describe.runIf(process.env.TW_SECRET_KEY)( | |||
).resolves.toBe(1n); | |||
|
|||
// we try to claim an extra `2` tokens | |||
// this should faile bcause the max claimable is `3` and we have previously already claimed 2 tokens (one for ourselves, one for the other wallet) | |||
// this should faile because the max claimable is `3` and we have previously already claimed 2 tokens (one for ourselves, one for the other wallet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's still a typo in the comment: faile
should be fail
. The correction is important for maintaining documentation quality, especially since this PR is specifically focused on improving comment clarity.
// this should faile because the max claimable is `3` and we have previously already claimed 2 tokens (one for ourselves, one for the other wallet) | |
// this should fail because the max claimable is `3` and we have previously already claimed 2 tokens (one for ourselves, one for the other wallet) |
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/thirdweb/src/extensions/erc721/drop721.test.ts (1)
293-293
: Typo in comment: "faile" is misspelled
The comment still reads “faile” instead of “fail.” Please correct it for clarity.Apply this diff:
- // this should faile because the max claimable is `3` and we have previously already claimed 2 tokens (one for ourselves, one for the other wallet) + // this should fail because the max claimable is `3` and we have previously already claimed 2 tokens (one for ourselves, one for the other wallet)
Description:
This pull request updates a comment in the drop721.test.ts file to clarify the reason for a test failure when attempting to claim more tokens than the allowed maximum. The new comment more clearly explains that the failure occurs because the max claimable is 3 and 2 tokens have already been claimed in previous tests. No functional code changes were made; this is a documentation/comment improvement for better test clarity.
PR-Codex overview
This PR focuses on correcting a comment in the test file
drop721.test.ts
to fix a typo regarding the claimable tokens, ensuring clarity in the test's intent.Detailed summary
drop721.test.ts
file.Summary by CodeRabbit