Repository navigation
fix: validate transfer amounts, launch name and ticker, config keys - #36
Merged
Merged
Conversation
wallet transfer sent a 0-lamport transfer for 0 and crashed on negative or infinite amounts; it now refuses anything that isn't a positive number, and a SOL amount below one lamport. launch refuses a blank name or ticker, and config set refuses keys it doesn't know. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rejects bad input before a wallet is unlocked or anything is sent.
wallet transfer: the amount must be a positive number orall.0used to send a 0-lamport transfer; negative and infinite amounts crashed. A SOL amount below one lamport is refused too.launch: a blank--nameor--tickeris refused.--descstays optional, since it is unused with--uri.config set: unknown keys are refused with the list of valid ones.config deletestill removes any key, so a typo saved earlier can be cleaned up.Invalid input exits with status 2, like
buy's amount check.Closes #3
Closes #5
Closes #6