Skip to content

Commit 68a92e6

Browse files
committed
fix: rpc target
1 parent 1dd5917 commit 68a92e6

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

demo/rn-bare-aggregate-verifier-example/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import "@ethersproject/shims";
33
// IMP START - Quick Start
44
import * as WebBrowser from "@toruslabs/react-native-web-browser";
55
import { 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";
77
import { ethers } from "ethers";
88
import React, { useEffect, useState } from "react";
99
import { 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
2323
const 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",

demo/rn-bare-aggregate-verifier-example/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,8 +1443,8 @@ SPEC CHECKSUMS:
14431443
React-utils: 4476b7fcbbd95cfd002f3e778616155241d86e31
14441444
ReactCommon: ecad995f26e0d1e24061f60f4e5d74782f003f12
14451445
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
1446-
Yoga: 2f71ecf38d934aecb366e686278102a51679c308
1446+
Yoga: ae3c32c514802d30f687a04a6a35b348506d411f
14471447

14481448
PODFILE CHECKSUM: cdf505c86a042435106cb526157d127c0fa9785c
14491449

1450-
COCOAPODS: 1.15.2
1450+
COCOAPODS: 1.16.2

demo/rn-bare-firebase-example/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import "@ethersproject/shims";
33
import firebaseAuth from "@react-native-firebase/auth";
44
import * as WebBrowser from "@toruslabs/react-native-web-browser";
55
import { 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";
77
import { ethers } from "ethers";
88
import React, { useEffect, useState } from "react";
99
import { Button, Dimensions, ScrollView, StyleSheet, Text, View } from "react-native";
@@ -14,7 +14,7 @@ const redirectUrl = `${scheme}://auth`;
1414
const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ";
1515

1616
const chainConfig = {
17-
chainNamespace: ChainNamespace.EIP155,
17+
chainNamespace: CHAIN_NAMESPACES.EIP155,
1818
chainId: "0xaa36a7",
1919
rpcTarget: `https://api.web3auth.io/infura-service/v1/0xaa36a7/${clientId}`,
2020
// Avoid using public rpcTarget in production.

demo/rn-expo-example/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const clientId = "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw
3838
const chainConfig = {
3939
chainNamespace: ChainNamespace.EIP155,
4040
chainId: "0xaa36a7",
41-
rpcTarget: "https://ethereum-sepolia-rpc.publicnode.com",
41+
rpcTarget: `https://api.web3auth.io/infura-service/v1/0xaa36a7/${clientId}`,
4242
// Avoid using public rpcTarget in production.
4343
// Use services like Infura, Quicknode etc
4444
displayName: "Ethereum Sepolia Testnet",

0 commit comments

Comments
 (0)