Repository navigation
Commit 0b3137e
fix(examples): multi_rail_merchant emits complete x402 v2 accepts entries
Mirror of node-commerce d39b086: examples/multi_rail_merchant.py declared
x402_version=2 but emitted accepts entries with only {scheme, network, payTo}
— missing required `amount` + `asset` fields. Strict x402 parsers would
reject. Adds atomic USDC amount + asset addr (from the USDC registry) +
maxTimeoutSeconds to both rail entries.
483 tests + ruff + ty green.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a5764c7 commit 0b3137e
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
223 | | - | |
224 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
225 | 240 | | |
226 | 241 | | |
227 | 242 | | |
| |||
0 commit comments