Skip to content

Commit 4041ec7

Browse files
authored
Merge pull request #838 from Web3Auth/fix-rpc-to-sepolia
Update RPC Goerli to Sepolia
2 parents 9cc46c4 + b3068b3 commit 4041ec7

File tree

127 files changed

+8197
-6478
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+8197
-6478
lines changed

android/android-quick-start/app/src/main/java/com/sbz/web3authdemoapp/MainActivity.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class MainActivity : AppCompatActivity() {
3939
private lateinit var web3: Web3j
4040
private lateinit var credentials: Credentials
4141
private lateinit var emailInput: EditText
42-
private val rpcUrl = "https://rpc.ankr.com/eth_goerli"
42+
private val rpcUrl = "https://rpc.ankr.com/eth_sepolia"
4343

4444
private val gson = Gson()
4545

flutter/flutter-aggregate-verifier-example/lib/main.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class MyApp extends StatefulWidget {
2828
class _MyAppState extends State<MyApp> {
2929
String _result = '';
3030
bool logoutVisible = false;
31-
String rpcUrl = 'https://rpc.ankr.com/eth_goerli';
31+
String rpcUrl = 'https://rpc.ankr.com/eth_sepolia';
3232

3333
@override
3434
void dispose() {
@@ -332,7 +332,7 @@ class _MyAppState extends State<MyApp> {
332332
// gasPrice: EtherAmount.fromUnitAndValue(EtherUnit.gwei, 100),
333333
value: EtherAmount.fromInt(EtherUnit.gwei, 5000000), // 0.005 ETH
334334
),
335-
chainId: 5,
335+
chainId: 11155111,
336336
);
337337
log(receipt);
338338
setState(() {

flutter/flutter-auth0-example/lib/main.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class MyApp extends StatefulWidget {
2828
class _MyAppState extends State<MyApp> {
2929
String _result = '';
3030
bool logoutVisible = false;
31-
String rpcUrl = 'https://rpc.ankr.com/eth_goerli';
31+
String rpcUrl = 'https://rpc.ankr.com/eth_sepolia';
3232

3333
@override
3434
void dispose() {
@@ -314,7 +314,7 @@ class _MyAppState extends State<MyApp> {
314314
5000000,
315315
), // 0.005 ETH
316316
),
317-
chainId: 5,
317+
chainId: 11155111,
318318
);
319319
log(receipt);
320320
setState(() {

flutter/flutter-firebase-example/lib/main.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class MyApp extends StatefulWidget {
3232
class _MyAppState extends State<MyApp> {
3333
String _result = '';
3434
bool logoutVisible = false;
35-
String rpcUrl = 'https://rpc.ankr.com/eth_goerli';
35+
String rpcUrl = 'https://rpc.ankr.com/eth_sepolia';
3636

3737
@override
3838
void dispose() {
@@ -341,7 +341,7 @@ class _MyAppState extends State<MyApp> {
341341
5000000,
342342
), // 0.005 ETH
343343
),
344-
chainId: 5,
344+
chainId: 11155111,
345345
);
346346
log(receipt);
347347
setState(() {

flutter/flutter-quick-start/lib/main.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class MyApp extends StatefulWidget {
2828
class _MyAppState extends State<MyApp> {
2929
String _result = '';
3030
bool logoutVisible = false;
31-
String rpcUrl = 'https://rpc.ankr.com/eth_goerli';
31+
String rpcUrl = 'https://rpc.ankr.com/eth_sepolia';
3232
// TextEditingController for handling input from the text field
3333
final TextEditingController emailController = TextEditingController();
3434

@@ -345,7 +345,7 @@ class _MyAppState extends State<MyApp> {
345345
5000000,
346346
), // 0.005 ETH
347347
),
348-
chainId: 5,
348+
chainId: 11155111,
349349
);
350350
log(receipt);
351351
setState(() {

ios/ios-aggregate-verifier-example/ios-aggregate-example/web3RPC.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class Web3RPC : ObservableObject {
1212
public var address: EthereumAddress
1313
private var account: EthereumAccount
1414
private var latestBlock = 0
15-
private var chainID = 5
16-
private var RPC_URL = "https://rpc.ankr.com/eth_goerli"
15+
private var chainID = 11155111
16+
private var RPC_URL = "https://rpc.ankr.com/eth_sepolia"
1717

1818
@Published var balance: Double = 0
1919
@Published var signedMessageHashString:String = ""

ios/ios-auth0-example/ios-auth0-example/web3RPC.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class Web3RPC : ObservableObject {
1212
public var address: EthereumAddress
1313
private var account: EthereumAccount
1414
private var latestBlock = 0
15-
private var chainID = 5
16-
private var RPC_URL = "https://rpc.ankr.com/eth_goerli"
15+
private var chainID = 11155111
16+
private var RPC_URL = "https://rpc.ankr.com/eth_sepolia"
1717

1818
@Published var balance: Double = 0
1919
@Published var signedMessageHashString:String = ""

ios/ios-firebase-example/ios-firebase-example/web3RPC.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class Web3RPC : ObservableObject {
1212
public var address: EthereumAddress
1313
private var account: EthereumAccount
1414
private var latestBlock = 0
15-
private var chainID = 5
16-
private var RPC_URL = "https://rpc.ankr.com/eth_goerli"
15+
private var chainID = 11155111
16+
private var RPC_URL = "https://rpc.ankr.com/eth_sepolia"
1717

1818
@Published var balance: Double = 0
1919
@Published var signedMessageHashString:String = ""

ios/ios-quick-start/ios-example/web3RPC.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class Web3RPC : ObservableObject {
1212
public var address: EthereumAddress
1313
private var account: EthereumAccount
1414
private var latestBlock = 0
15-
private var chainID = 5
16-
private var RPC_URL = "https://rpc.ankr.com/eth_goerli"
15+
private var chainID = 11155111
16+
private var RPC_URL = "https://rpc.ankr.com/eth_sepolia"
1717

1818
@Published var balance: Double = 0
1919
@Published var signedMessageHashString:String = ""

web-modal-sdk/account-abstraction/web3auth-safe-example/src/App.tsx

+7-7
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ function App() {
1919
const safeAuthInitOptions: SafeAuthInitOptions = {
2020
showWidgetButton: false,
2121
chainConfig: {
22-
blockExplorerUrl: "https://goerli.etherscan.io",
23-
chainId: "0x5",
24-
displayName: "Ethereum Goerli",
25-
rpcTarget: "https://rpc.ankr.com/eth_goerli",
22+
blockExplorerUrl: "https://sepolia.etherscan.io/",
23+
chainId: "0xaa36a7", // hex for 11155111
24+
displayName: "Ethereum Sepolia",
25+
rpcTarget: "https://rpc.ankr.com/eth_sepolia",
2626
ticker: "ETH",
2727
tickerName: "Ethereum",
2828
},
@@ -270,7 +270,7 @@ function App() {
270270
safeAuthSignInResponse?.eoa ? (
271271
<p>
272272
Your EOA:{" "}
273-
<a href={`https://goerli.etherscan.io/address/${safeAuthSignInResponse?.eoa}`} target="_blank" rel="noreferrer">
273+
<a href={`https://sepolia.etherscan.io/address/${safeAuthSignInResponse?.eoa}`} target="_blank" rel="noreferrer">
274274
{safeAuthSignInResponse?.eoa}
275275
</a>
276276
</p>
@@ -285,7 +285,7 @@ function App() {
285285
{safeAuthSignInResponse?.safes?.map((safe: any, index: any) => (
286286
<p key={index}>
287287
Safe[{index}]:{" "}
288-
<a href={`https://goerli.etherscan.io/address/${safe}`} target="_blank" rel="noreferrer">
288+
<a href={`https://sepolia.etherscan.io/address/${safe}`} target="_blank" rel="noreferrer">
289289
{safe}
290290
</a>
291291
</p>
@@ -294,7 +294,7 @@ function App() {
294294
) : (
295295
<>
296296
<p>No Available Safes, Please create one by clicking the above button. </p>
297-
<p> Note: You should have some goerli ETH in your account.</p>
297+
<p> Note: You should have some sepolia ETH in your account.</p>
298298
<p>Please be patient, it takes time to create the SAFE!, depending upon network congestion.</p>
299299
</>
300300
)

0 commit comments

Comments
 (0)