Problem
pumpfun wallet transfer <recipient> 0 sends a 0-lamport transaction to the network, wasting fees.
Fix
Add validation in src/pumpfun_cli/commands/wallet.py wallet_transfer(), before calling core:
if amount != "all" and float(amount) <= 0:
error("Transfer amount must be greater than zero.")
Files to change
src/pumpfun_cli/commands/wallet.py — add guard in wallet_transfer()
tests/test_commands/test_wallet_cmd.py — add test for zero amount
How to test
uv run pytest tests/test_commands/test_wallet_cmd.py -v