Repository navigation
A mainnet offer alongside the testnet one, off by default - #81
Merged
Merged
Conversation
Measured 2026-10-18: facilitator.payai.network lists eip155:8453 with scheme exact on x402 version 2, and x402.org/facilitator does not list mainnet at all (eleven kinds, testnet only). So mainnet and the facilitator have to match, and readSellerConfig now refuses the combination rather than documenting it: advertising a price nobody can settle is the same false promise that keeps an unconfigured seller from having a paid route at all. Off by default, same discipline as the bazaar flag and receipt version 2. Switching it on changes the bytes of the live 402 and makes a payment cost real money, so that is a decision on a date, not a side effect of a deploy. Two offers, not a switch: a buyer testing on testnet keeps working, and a buyer who wants to pay for real picks the other line. The network comparison in buildOfferReceiptExtension reads context.requirements.network, so it follows whichever line the buyer chose without further wiring. Tests: 144 pass (was 141), including that the flag off leaves exactly one accepts entry on the declared testnet network.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
tokenizen | 563a1d2 | Commit Preview URL Branch Preview URL |
Oct 18 2026, 09:30 AM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
tokenizen-website | 563a1d2 | Commit Preview URL Branch Preview URL |
Oct 18 2026, 09:30 AM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Measured 2026-10-18 against both facilitators' own
/supported:eip155:8453eip155:84532facilitator.payai.networkx402.org/facilitatorSo mainnet and the facilitator have to match.
readSellerConfigrefuses thecombination rather than documenting it: advertising a price nobody can settle is the
same false promise that keeps an unconfigured seller from having a paid route at all.
Off by default, same discipline as the bazaar flag and receipt version 2.
Switching it on changes the bytes of the live 402 and makes a payment cost real money,
so that is a decision on a date, not a side effect of a deploy. A test asserts that
with the flag off there is exactly one
acceptsentry, on the declared testnet.Two offers, not a switch. A buyer testing on testnet keeps working; a buyer who
wants to pay for real picks the other line. The network comparison added in #80 reads
context.requirements.network, so it follows whichever line the buyer chose withoutfurther wiring, and still refuses to sign if the facilitator settles on a third thing.
Tests: 144 pass (was 141).