File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
apps/hub/src/app/_constants Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11import { getDefaultConfig } from 'connectkit'
22import { defineChain } from 'viem'
33import { createConfig , http } from 'wagmi'
4+ import { type Chain , mainnet } from 'wagmi/chains'
45
56import { clientEnv } from './env.client.mjs'
67
@@ -9,11 +10,12 @@ import type {
910 CreateConnectorFn ,
1011 Transport ,
1112} from 'wagmi'
12- import type { Chain } from 'wagmi/chains'
1313
1414export const testnet = defineChain ( {
1515 id : 1660990954 ,
1616 name : 'Status Network Testnet' ,
17+ testnet : true ,
18+ sourceId : 1660990954 ,
1719 nativeCurrency : { name : 'Ether' , symbol : 'ETH' , decimals : 18 } ,
1820 rpcUrls : {
1921 default : {
@@ -30,8 +32,9 @@ export const testnet = defineChain({
3032
3133export const getDefaultWagmiConfig = ( ) =>
3234 getDefaultConfig ( {
33- chains : [ testnet ] ,
35+ chains : [ mainnet , testnet ] ,
3436 transports : {
37+ [ mainnet . id ] : http ( mainnet . rpcUrls . default . http [ 0 ] ) ,
3538 [ testnet . id ] : http ( testnet . rpcUrls . default . http [ 0 ] ) ,
3639 } ,
3740 walletConnectProjectId :
Original file line number Diff line number Diff line change @@ -69,5 +69,5 @@ export const siweConfig: SIWEConfig = {
6969 }
7070 } ,
7171
72- signOutOnDisconnect : true ,
72+ signOutOnDisconnect : false ,
7373}
You can’t perform that action at this time.
0 commit comments