Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/base-account/guides/verify-social-accounts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

</Step>
</Steps>
Expand Down
9 changes: 4 additions & 5 deletions docs/base-account/improve-ux/spend-permissions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand All @@ -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.
Expand Down