-
Notifications
You must be signed in to change notification settings - Fork 46
feat(db): ensure we have a runtime check to see if network type is valid #764
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
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
samui-wallet-api | cab26b0 | Commit Preview URL Branch Preview URL |
Dec 14 2025, 01:26 PM |
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.
Important
Looks good to me! 👍
Reviewed everything up to cab26b0 in 43 seconds. Click for details.
- Reviewed
50lines of code in2files - Skipped
0files when reviewing. - Skipped posting
2draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. packages/db/src/network/network-create.ts:7
- Draft comment:
The removed TODO comment indicates that network type validation is now handled by the schema (via networkCreateSchema.parse). Consider adding a clarifying comment to document that runtime validation (including valid network type) is performed here. - Reason this comment was not posted:
Confidence changes required:33%<= threshold50%None
2. packages/db/test/network-create.test.ts:165
- Draft comment:
Good addition of a test case for an invalid network type using an inline snapshot. This reinforces that only allowed types are accepted by the schema. - Reason this comment was not posted:
Confidence changes required:0%<= threshold50%None
Workflow ID: wflow_BVHn0IAFQ6t7FUmI
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
BundleMonUnchanged files (98)
No change in files bundle size Unchanged groups (3)
Final result: ✅ View report in BundleMon website ➡️ |
Description
Removes a todo and assures this works by adding a test.
Important
Removes TODO and adds test to ensure
networkCreatethrows error for invalid network type.networkCreatefunction innetwork-create.tsregarding runtime check for valid network type.network-create.test.tsto ensurenetworkCreatethrows an error for invalid network typesolana:custom.networkCreaterejects invalid network types with a specific error message using Zod validation.This description was created by
for cab26b0. You can customize this summary. It will automatically update as commits are pushed.