Skip to content

Release v4.15.1 follow-up x402 issue - #1041

Merged
gummy789j merged 3 commits into
masterfrom
release_v4.15.1
Oct 22, 2026
Merged

gummy789j merged 3 commits into
masterfrom
release_v4.15.1

Conversation

@gummy789j

Copy link
Copy Markdown
Collaborator

x402 pay --max-raw-amount without --token/--asset turned off the SDK spend controls (its $1 cap and its default-asset allowlist) and put a unitless raw cap in their place. A seller could then name any token, or the same stablecoin at another precision, under a cap sized for a different one, and the CLI would sign a Permit2 authorization for it.

  • Reject --max-raw-amount without --token or --asset in the pay schema (invalid_option), and again in selectMatching before anything is signed.
  • x402 roundtrip --raw-amount pins its payment to the asset its own paywall serves.
  • Spend-control hints no longer suggest an unpinned raw limit.
  • The pay result reports what the created payment pays in data.payment (asset, token, decimals, amount, rawAmount), taken from the requirement the SDK built the payment for; text output shows Amount and Asset.

gummy789j and others added 3 commits October 21, 2026 12:09
`x402 pay --max-raw-amount` without `--token`/`--asset` turned off the
SDK spend controls (its $1 cap and its default-asset allowlist) and put
a unitless raw cap in their place. A seller could then name any token,
or the same stablecoin at another precision, under a cap sized for a
different one, and the CLI would sign a Permit2 authorization for it.

- Reject `--max-raw-amount` without `--token` or `--asset` in the pay
  schema (invalid_option), and again in selectMatching before anything
  is signed.
- `x402 roundtrip --raw-amount` pins its payment to the asset its own
  paywall serves.
- Spend-control hints no longer suggest an unpinned raw limit.
- The pay result reports what the created payment pays in
  `data.payment` (asset, token, decimals, amount, rawAmount), taken
  from the requirement the SDK built the payment for; text output shows
  Amount and Asset.
Keep Codex/MCP config, the CodeGraph index and local security audit
output out of the repository.
fix(ts): pin x402 raw payment limits to a token
@gummy789j gummy789j changed the title Release v4.15.1 Release v4.15.1 follow-up x402 issue Oct 21, 2026
@gummy789j
gummy789j merged commit b996e32 into master Oct 22, 2026
12 checks passed
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.

3 participants