Skip to content

Commit 86c0288

Browse files
committed
chore(web-devtools): intialize the SDK
1 parent 8a545b9 commit 86c0288

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

web-devtools/.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,8 @@ yarn-error.log*
4545
# typescript
4646
*.tsbuildinfo
4747
next-env.d.ts
48+
49+
.env*
50+
.flaskenv*
51+
!.env.project
52+
!.env.vault

web-devtools/src/context/Web3Provider.tsx

+9
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { createConfig, fallback, http, WagmiProvider, webSocket } from "wagmi";
66
import { mainnet, arbitrumSepolia, arbitrum, gnosisChiado, sepolia, gnosis } from "wagmi/chains";
77
import { walletConnect } from "wagmi/connectors";
88

9+
import { configureSDK } from "@kleros/kleros-sdk/src/sdk";
10+
911
import { ALL_CHAINS, DEFAULT_CHAIN } from "consts/chains";
1012
import { isProductionDeployment } from "consts/index";
1113

@@ -78,6 +80,13 @@ export const wagmiConfig = createConfig({
7880
connectors: [walletConnect({ projectId })],
7981
});
8082

83+
configureSDK({
84+
client: {
85+
chain: isProduction ? arbitrum : arbitrumSepolia,
86+
transport: transports[isProduction ? arbitrum.id : arbitrumSepolia.id],
87+
},
88+
});
89+
8190
createWeb3Modal({
8291
wagmiConfig,
8392
projectId,

0 commit comments

Comments
 (0)