Skip to content

Commit

Permalink
Remove optmism from example (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
briandoyle81CB authored Nov 21, 2023
1 parent 14c48ef commit 846fdc8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ Before you deploy, make sure you configure the rest of the items in the control

### Public Provider

By default, the setup script will configure your app to use the `publicProvider()`, and connect to a number of popular chains. To simply matters, remove all but `mainnnet`, `optimism`, and `base`.
By default, the setup script will configure your app to use the `publicProvider()`, and connect to a number of popular chains. To simply matters, remove all but `mainnnet` and `base`.

```typescript
const { chains, publicClient, webSocketPublicClient } = configureChains(
[mainnet, optimism, base],
[mainnet, base],
[publicProvider()],
);
```
Expand Down Expand Up @@ -142,7 +142,7 @@ Use these endpoints to add a `jsonRpcProvider` to your array of providers:

```typescript
const { chains, publicClient, webSocketPublicClient } = configureChains(
[mainnet, optimism, base],
[mainnet, base],
[
jsonRpcProvider({
rpc: () => ({
Expand Down Expand Up @@ -181,7 +181,7 @@ Import `alchemyProvider`, then add it to your list of providers:
import { alchemyProvider } from 'wagmi/providers/alchemy';

const { chains, publicClient, webSocketPublicClient } = configureChains(
[mainnet, optimism, base],
[mainnet, base],
[
// other providers
alchemyProvider({ apiKey: 'yourAlchemyApiKey' }),
Expand Down

0 comments on commit 846fdc8

Please sign in to comment.