@@ -3,7 +3,7 @@ import "@ethersproject/shims";
33// IMP START - Quick Start
44import * as WebBrowser from "@toruslabs/react-native-web-browser" ;
55import { EthereumPrivateKeyProvider } from "@web3auth/ethereum-provider" ;
6- import Web3Auth , { AUTH_CONNECTION , ChainNamespace , WEB3AUTH_NETWORK } from "@web3auth/react-native-sdk" ;
6+ import Web3Auth , { AUTH_CONNECTION , CHAIN_NAMESPACES , WEB3AUTH_NETWORK } from "@web3auth/react-native-sdk" ;
77import { ethers } from "ethers" ;
88import React , { useEffect , useState } from "react" ;
99import { Button , Dimensions , ScrollView , StyleSheet , Switch , Text , TextInput , View } from "react-native" ;
@@ -21,9 +21,9 @@ const clientId = "BHgArYmWwSeq21czpcarYh0EVq2WWOzflX-NTK-tY1-1pauPzHKRRLgpABkmYi
2121
2222// IMP START - SDK Initialization
2323const chainConfig = {
24- chainNamespace : ChainNamespace . EIP155 ,
24+ chainNamespace : CHAIN_NAMESPACES . EIP155 ,
2525 chainId : "0xaa36a7" ,
26- rpcTarget : " https://1rpc. io/sepolia" ,
26+ rpcTarget : ` https://api.web3auth. io/infura-service/v1/0xaa36a7/ ${ clientId } ` ,
2727 // Avoid using public rpcTarget in production.
2828 // Use services like Infura, Quicknode etc
2929 displayName : "Ethereum Sepolia Testnet" ,
0 commit comments