-
Notifications
You must be signed in to change notification settings - Fork 7
revert: remove machineUSD CLI funding #94
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,12 +56,10 @@ async function runFundCompat(args: readonly string[]) { | |
| action: fundAction({ | ||
| credits: args.includes("--credits"), | ||
| crypto: args.includes("--crypto"), | ||
| machineUsd: args.includes("--machine-usd"), | ||
| referralCode: stringArg(args, "--referral-code") ?? stringArg(args, "--claim"), | ||
| }), | ||
| address: stringArg(args, "--address"), | ||
| code: stringArg(args, "--referral-code") ?? stringArg(args, "--claim"), | ||
| network: stringArg(args, "--network") ?? stringArg(args, "-n"), | ||
| noBrowser: args.includes("--no-browser"), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When Useful? React with 👍 / 👎. |
||
| }); | ||
| printCompatOutput(result, args); | ||
|
|
||
This file was deleted.
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.
When a caller uses the previously supported
tempo wallet fund --machine-usd, the compatibility handler still intercepts the invocation before the schema parser but now ignores this flag, causingfundActionto select the ordinaryfundflow. Instead of reporting that machineUSD funding is unavailable, the CLI opens a different purchase flow and waits for the regular token balance, which can mislead callers into funding the wrong asset. Explicitly reject this withdrawn flag or allow the normal option parser to reject it.Useful? React with 👍 / 👎.