Skip to content

Commit 94aab41

Browse files
committed
docs(x402): bump demo-3 (trove-mandate) @x402 deps to ^2.11.0
Demo 3's apps/trove-advisor-mandate now pins @x402/evm + @x402/paywall to canonical ^2.11.0 (per Phase 4a refactor — drops the v2.10.0-mezo.7 preview tarball override). Reflect that in the docs: - Step 1 install paragraph: replace 'pins @x402/evm 2.10.0-mezo.7 through pnpm.overrides' with canonical-pin language; drop the override prose; cross-link Quickstart Step 6 as the transitive-dep fallback (consistent with Phase 1b/2b/3b prose tone). - Troubleshooting row for 'DEFAULT_STABLECOINS': updated cause/fix to match the canonical-pin remedy.
1 parent 8261dcb commit 94aab41

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

src/content/docs/docs/developers/getting-started/musd-payments-x402/trove-mandate.mdx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,13 @@ page URL follows that. The **app directory** inside the repo is
151151
advisor with a mandate layer added. Use the path above verbatim.
152152
</Aside>
153153

154-
Demo 3's `package.json` pins `@x402/evm 2.10.0-mezo.7` through
155-
`pnpm.overrides` — same tarball as Demo 2 (the `onBeforePaymentCreation`
156-
hook is part of `@x402/core`, not the EVM scheme). Only `@x402/evm`
157-
needs the override.
154+
Demo 3's `package.json` pins `@x402/evm` and `@x402/paywall` to
155+
canonical `^2.11.0` (which ships Mezo support natively — the
156+
`onBeforePaymentCreation` hook is part of `@x402/core`, not the EVM
157+
scheme, and the EVM scheme's Mezo handling is in 2.11.0+). No
158+
`pnpm.overrides` block is needed; if a transitive dep pins `@x402/evm`
159+
to `2.10.x`, see [Quickstart Step 6](../x402-quickstart/#step-6-apply-library-overrides)
160+
for a fallback override pattern.
158161

159162
## Step 2: Configure `.env`
160163

@@ -292,7 +295,7 @@ the on-chain settlement don't change.
292295
| `Payment creation aborted: rate_limit_exceeded` | More than `max` calls to an endpoint within `perMs` | Back off; the sliding window releases the lock naturally |
293296
| `CLIENT_PRIVATE_KEY environment variable is required` | `.env` missing or in the wrong directory | `cp .env.example .env` inside `apps/trove-advisor-mandate/` |
294297
| `WARNING: mUSD not approved for Permit2` | Account A hasn't granted Permit2 allowance | Apply [Demo 1 Step 1](./agentic-joke-buyer/#step-1-one-time-permit2-approval) |
295-
| `does not provide an export named 'DEFAULT_STABLECOINS'` | `pnpm.overrides` not forcing `@x402/evm` through the preview tarball | Confirm the overrides block pins `@x402/evm@2.10.0-mezo.7`; rerun `pnpm install` |
298+
| `does not provide an export named 'DEFAULT_STABLECOINS'` | Installed `@x402/evm` is `2.10.x`, which lacks Mezo support | Pin `@x402/evm` to `^2.11.0` (and `@x402/paywall` if you also use it); rerun `pnpm install`. See [Quickstart Step 6](../x402-quickstart/#step-6-apply-library-overrides) if a transitive dep is forcing `2.10.x` |
296299
| Two paid txs in Summary but three on the explorer | The denied call somehow still settled | Something is bypassing the hook. Confirm `onBeforePaymentCreation(policy.asHook())` is chained on the `x402Client` you actually pass to `wrapFetchWithPayment`, not on a second client instance |
297300

298301
## Security

0 commit comments

Comments
 (0)