Skip to content

Commit 417cb14

Browse files
committed
nit
1 parent 9a304f2 commit 417cb14

File tree

1 file changed

+5
-5
lines changed
  • web-modal-sdk/quick-starts/react-modal-quick-start/src

1 file changed

+5
-5
lines changed

web-modal-sdk/quick-starts/react-modal-quick-start/src/App.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import "./App.css";
44

55
// IMP START - Quick Start
6-
import { Web3Auth, Web3AuthOptions, IProvider, WEB3AUTH_NETWORK, getEvmChainConfig, CustomChainConfig } from "@web3auth/modal";
6+
import { Web3Auth, IProvider, WEB3AUTH_NETWORK, getEvmChainConfig, CustomChainConfig } from "@web3auth/modal";
77
// IMP END - Quick Start
88
import { useEffect, useState } from "react";
99

@@ -15,22 +15,22 @@ import RPC from "./ethersRPC";
1515

1616
// IMP START - Dashboard Registration
1717
const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ"; // get from https://dashboard.web3auth.io
18-
const chainId = 0xaa36a7; // Sepolia testnet
1918
// IMP END - Dashboard Registration
2019

2120
// IMP START - Chain Config
2221
// Get custom chain configs for your chain from https://web3auth.io/docs/connect-blockchain
22+
const chainId = 0xaa36a7; // Sepolia testnet
2323
const chains: CustomChainConfig[] = [getEvmChainConfig(chainId, clientId)!];
2424
// IMP END - Chain Config
2525

26-
const web3AuthOptions: Web3AuthOptions = {
26+
// IMP START - SDK Initialization
27+
const web3auth = new Web3Auth({
2728
clientId,
2829
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
2930
chains,
3031
defaultChainId: chainId.toString(),
3132
multiInjectedProviderDiscovery: true,
32-
};
33-
const web3auth = new Web3Auth(web3AuthOptions);
33+
});
3434
// IMP END - SDK Initialization
3535

3636
function App() {

0 commit comments

Comments
 (0)