Skip to content

Commit 4903bad

Browse files
committed
fix vale
1 parent 8079337 commit 4903bad

5 files changed

Lines changed: 10 additions & 11 deletions

File tree

embedded-wallets/migration-guides/web.mdx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,9 @@ See the [Vue composables reference](/embedded-wallets/sdk/vue/composables) for t
426426

427427
Web SDK v11 centers on two breaking themes:
428428

429-
1. **Direct `provider` access removed** — see [Prefer `connection` over direct provider access](#prefer-connection-over-provider).
430429
2. **Solana SDK replaced**`@solana/web3.js` is no longer the primary RPC surface. Use
430+
1. **Direct `provider` access removed**: see [Prefer `connection` over direct provider access](#prefer-connection-over-provider).
431+
1. **Solana SDK replaced**: `@solana/web3.js` is no longer the primary RPC surface. Use
431432
`@solana/kit`, `@solana-program/system`, and Solana hooks from `@web3auth/modal/react/solana` or
432433
`@web3auth/modal/vue/solana`.
433434

@@ -503,7 +504,7 @@ For EVM work in React and Vue, prefer **Wagmi hooks** (`useConnection`, `useBala
503504
`useSendTransaction`, `useSignMessage`).
504505
They receive the provider through the Web3Auth connector and do not need manual wiring.
505506

506-
#### `Web3Auth` class: use `connection.ethereumProvider` instead of `provider`
507+
#### `Web3Auth` class: Use `connection.ethereumProvider` instead of `provider`
507508

508509
In v11, `provider` on the `Web3Auth` class is a setter only. Reading `web3auth.provider` at runtime
509510
returns `undefined`. Use `web3auth.connection?.ethereumProvider` instead.
@@ -566,7 +567,7 @@ export async function getAccounts(provider: IProvider): Promise<string> {
566567
}
567568
```
568569
569-
**v11 RPC helper** takes `privateKey: string` directly; no `IProvider` import in the helper
570+
**v11 RPC helper**: takes `privateKey: string` directly; no `IProvider` import in the helper
570571
571572
```ts
572573
export async function getAccounts(privateKey: string): Promise<string> {
@@ -849,7 +850,7 @@ const { signMessage } = useSignMessage()
849850
signMessage('Hello, Web3Auth!')
850851
```
851852
852-
#### Optional: keep `@solana/web3.js` as a narrow bridge
853+
#### Optional: Keep `@solana/web3.js` as a narrow bridge
853854
854855
Some third-party libraries (`@bonfida/spl-name-service`, `@solana/pay`) still depend on
855856
`@solana/web3.js` types. Keep the package installed but limit usage to the component that calls
@@ -995,7 +996,7 @@ switchChain({ chainId: chain.chainId })
995996
996997
Review these changes when upgrading from v10.
997998
998-
If you hit SDK bugs during upgrade, report them on [builder.metamask.io](https://builder.metamask.io)
999+
If you hit SDK bugs during upgrade, report them on the [MetaMask developer dashboard](https://builder.metamask.io)
9991000
and check [web3auth-web release notes](https://github.com/Web3Auth/web3auth-web/releases) for fixes
10001001
and known issues.
10011002

embedded-wallets/sdk/_common/_aa-address.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Account address.
99
values={[
1010
{ label: "Viem", value: "viem" },
1111
{ label: "Ethers", value: "ethers" },
12-
{ label: "Wagmi", value: "wagmi" },
12+
{ label: "Wagmi", value: "Wagmi" },
1313
]}
1414
>
1515

@@ -34,8 +34,6 @@ const smartAccountAddress = signer.getAddress()
3434

3535
</TabItem>
3636

37-
<TabItem value="wagmi">
38-
3937
```tsx
4038
import { useConnection } from 'wagmi'
4139

embedded-wallets/sdk/js/usage/connect.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ connectTo<T extends WALLET_CONNECTOR_TYPE>(connector: T, params?: LoginParamMap[
101101
102102
#### Return values
103103
104-
- **`Connection | null`** On successful login, returns a `Connection` object with
104+
- **`Connection | null`**: On successful login, returns a `Connection` object with
105105
`ethereumProvider`, `solanaWallet`, and `connectorName`. On unsuccessful login, returns `null`.
106106
- For the EIP-1193 provider, use `web3auth.connection?.ethereumProvider` after `connect()` or
107107
`connectTo()`.

embedded-wallets/sdk/react/advanced/wallet-services.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ All these configurations can be directly accessed and managed through the [Embed
1717

1818
:::note
1919

20-
Access to Wallet Services is gated. You can use this feature in `sapphire_devnet` for free. The minimum [pricing plan](https://web3auth.io/pricing.html) to use this feature in a production environment is the **Scale Plan**.
20+
Access to Wallet Services is gated. You can use this feature in `sapphire_devnet` at no cost. The minimum [pricing plan](https://web3auth.io/pricing.html) to use this feature in a production environment is the **Scale Plan**.
2121

2222
:::
2323

src/pages/quickstart/builder/embedded-wallets/vue/stepContent/installation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ This quickstart uses Wagmi for blockchain calls.
77
npm install --save @web3auth/modal @wagmi/vue @tanstack/vue-query viem
88
```
99

10-
[![Npm package monthly downloads](https://badgen.net/npm/dm/@web3auth/modal)](https://www.npmjs.com/package/@web3auth/modal) [![](https://data.jsdelivr.com/v1/package/npm/@web3auth/modal/badge)](https://www.jsdelivr.com/package/npm/@web3auth/modal)
10+
[![npm package monthly downloads](https://badgen.net/npm/dm/@web3auth/modal)](https://www.npmjs.com/package/@web3auth/modal) [![](https://data.jsdelivr.com/v1/package/npm/@web3auth/modal/badge)](https://www.jsdelivr.com/package/npm/@web3auth/modal)

0 commit comments

Comments
 (0)