Skip to content

fix: validate transfer amounts, launch name and ticker, config keys - #36

Merged
smypmsa merged 1 commit into
mainfrom
fix/input-validation
Nov 9, 2026
Merged

smypmsa merged 1 commit into
mainfrom
fix/input-validation

Conversation

@smypmsa

@smypmsa smypmsa commented Nov 9, 2026

Copy link
Copy Markdown
Member

Rejects bad input before a wallet is unlocked or anything is sent.

  • wallet transfer: the amount must be a positive number or all. 0 used to send a 0-lamport transfer; negative and infinite amounts crashed. A SOL amount below one lamport is refused too.
  • launch: a blank --name or --ticker is refused. --desc stays optional, since it is unused with --uri.
  • config set: unknown keys are refused with the list of valid ones. config delete still 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

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>
@smypmsa
smypmsa merged commit 5d9f100 into main Nov 9, 2026
7 checks passed
@smypmsa
smypmsa deleted the fix/input-validation branch November 9, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant