You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: src/content/docs/docs/developers/getting-started/musd-payments-x402/trove-mandate.mdx
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,10 +151,13 @@ page URL follows that. The **app directory** inside the repo is
151
151
advisor with a mandate layer added. Use the path above verbatim.
152
152
</Aside>
153
153
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.
158
161
159
162
## Step 2: Configure `.env`
160
163
@@ -292,7 +295,7 @@ the on-chain settlement don't change.
292
295
|`Payment creation aborted: rate_limit_exceeded`| More than `max` calls to an endpoint within `perMs`| Back off; the sliding window releases the lock naturally |
293
296
|`CLIENT_PRIVATE_KEY environment variable is required`|`.env` missing or in the wrong directory |`cp .env.example .env` inside `apps/trove-advisor-mandate/`|
294
297
|`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`|
296
299
| 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 |
0 commit comments