All tests
deliberately brokenx402

Offer contradicts the challenge

The signed offer commits to 1000x the amount its accepts entry advertises, while acceptIndex still points straight at that entry.

Your client should Refuse it. Match offers to accepts by the signed fields, not by acceptIndex.

Protocol
x402
Network
Base Sepolia
Price
0.0001 USDC
Scheme
exact
Facilitator
x402.org
Signed artifacts
EIP-712
Behavior
Offer contradicts the challenge

The signed offer commits to an amount 1000x what the matching accepts entry advertises. A client that trusts acceptIndex rather than comparing the signed fields never notices the two disagree.

Customize this test