cli: `xe send` defaults to asset XUSD, so the documented "send XE" flow fails with "insufficient XUSD" (Minor)
Report
Summary
xe send defaults to asset XUSD when --asset is not given. The testnet's primary asset is XE: the faucet grants XE, and the official guide's first action is "Send and receive XE". A user who follows the guide and runs xe send <addr> <amount> therefore hits insufficient XUSD: have 0, need <amount> even though they hold XE. The default is not stated in the command help.
Steps to reproduce
- Build the CLI from source (
make build). - Create a wallet, request XE from the faucet, receive it (balance shows XE).
- Run
xe send <dest> 0.5with no--asset. - Observe
error: insufficient XUSD: have 0, need 0.5. xe send <dest> 0.5 --asset XEworks.
Evidence
cmd/xe/main.go:674incmdSend:asset := "XUSD"is the default before--assetis parsed.cmd/xe/main.go:170help:send <addr> <amount> [--asset XE|XUSD]does not state which is the default.- Faucet grants XE, confirmed live:
HTTP 201 {"amount":1000000,"asset":"XE",...}.
Suggested fix
Default xe send to XE (matching the faucet, the guide and the native asset), or state the default asset explicitly in the help text. Defaulting to the asset a new user actually holds removes a confusing first-send failure.
Suggested tier
Minor (UX / consistency). Code read against public master 9787859, confirmed live on testnet-0005.
XE address for any reward: 6591eab453dbd93b27e2cd674712f94b42d9e7e4d52980b966fa6da4ccd832dc
Thread
Thanks for the report. We have confirmed the behaviour you describe and it is being handled; we will update this ticket when there is more to share.