Skip to content

Commit fe9e7cb

Browse files
iamonuwafelicio
authored andcommitted
chore: set signOutOnDisconnect to false
1 parent 9e4c863 commit fe9e7cb

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

apps/hub/src/app/_constants/chain.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { getDefaultConfig } from 'connectkit'
22
import { defineChain } from 'viem'
33
import { createConfig, http } from 'wagmi'
4+
import { type Chain, mainnet } from 'wagmi/chains'
45

56
import { 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

1414
export 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

3133
export 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:

apps/hub/src/app/_constants/siwe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,5 @@ export const siweConfig: SIWEConfig = {
6969
}
7070
},
7171

72-
signOutOnDisconnect: true,
72+
signOutOnDisconnect: false,
7373
}

0 commit comments

Comments
 (0)