diff --git a/docs/base-account/guides/verify-social-accounts.mdx b/docs/base-account/guides/verify-social-accounts.mdx index 861a1eb46..74f1b9e9a 100644 --- a/docs/base-account/guides/verify-social-accounts.mdx +++ b/docs/base-account/guides/verify-social-accounts.mdx @@ -432,7 +432,7 @@ function redirectToVerifyMiniApp(provider: string) { } ``` -After verification, the user returns to your `redirect_uri` with `?success=true`. Run the check again (step 3) and it now returns 200 with a token. If you're building for the Base app, see the [Apps overview](/apps/introduction/overview) for broader app structure and lifecycle guidance. +After verification, the user returns to your `redirect_uri` with `?success=true`. Run the check again (step 3) and it now returns 200 with a token. If you're building for the Base app, see the see the [Apps overview](/apps) for broader app structure and lifecycle guidance. diff --git a/docs/base-account/improve-ux/spend-permissions.mdx b/docs/base-account/improve-ux/spend-permissions.mdx index 5afa7a69c..5a3cc5aa2 100644 --- a/docs/base-account/improve-ux/spend-permissions.mdx +++ b/docs/base-account/improve-ux/spend-permissions.mdx @@ -234,7 +234,8 @@ const permission = await fetchPermission({ try { const { isActive, remainingSpend } = await getPermissionStatus(permission); const amount = 1000n; - +// Note: remainingSpend and amount are both in the token's smallest unit +// (e.g. for USDC with 6 decimals, 1_000_000n = $1.00) if (!isActive || remainingSpend < amount) { throw new Error("No spend permission available"); } @@ -243,10 +244,8 @@ try { } // 3. prepare the calls -const [approveCall, spendCall] = await prepareSpendCallData({ - permission, - amount, -}); +const spendCalls = await prepareSpendCallData({ permission, amount }); +calls: spendCalls // 4. execute the calls using your app's spender account // this is an example using wallet_sendCalls, in production it could be using eth_sendTransaction.