Skip to content

revert: remove machineUSD CLI funding - #94

Merged
parvahuja merged 1 commit into
mainfrom
parv/revert-machine-usd-cli-funding
Aug 17, 2026
Merged

revert: remove machineUSD CLI funding#94
parvahuja merged 1 commit into
mainfrom
parv/revert-machine-usd-cli-funding

Conversation

@parvahuja

Copy link
Copy Markdown
Member

Why

The machineUSD CLI funding flow should not ship before its wallet and backend rollout are ready.

What

@parvahuja
parvahuja merged commit 4600a99 into main Aug 17, 2026
8 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6423d441d3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/compat.ts
address: stringArg(args, "--address"),
code: stringArg(args, "--referral-code") ?? stringArg(args, "--claim"),
network: stringArg(args, "--network") ?? stringArg(args, "-n"),
noBrowser: args.includes("--no-browser"),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve the fund network argument

When tempo wallet fund --network testnet (or -n testnet) is used, main() routes the command through handleCompatCommand before cli.serve, and this call now omits the parsed network. runFundingFlow consequently defaults to mainnet and polls the mainnet token balance, so testnet faucet funding is never detected and the command can wait indefinitely. Keep forwarding the network while reverting only the machineUSD-specific behavior.

Useful? React with 👍 / 👎.

Comment thread src/compat.ts
Comment on lines 58 to 59
crypto: args.includes("--crypto"),
machineUsd: args.includes("--machine-usd"),
referralCode: stringArg(args, "--referral-code") ?? stringArg(args, "--claim"),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reject the withdrawn machineUSD flag

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, causing fundAction to select the ordinary fund flow. 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant