Skip to content

Commit 9e9d62e

Browse files
committedFeb 6, 2025
fix(web-devtools): wagmi-config-import
1 parent beb44c8 commit 9e9d62e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎web-devtools/src/context/Web3Provider.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ if (!projectId) {
7373
throw new Error("WalletConnect project ID is not set in NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID environment variable.");
7474
}
7575

76-
const wagmiAdapter = new WagmiAdapter({
76+
export const wagmiAdapter = new WagmiAdapter({
7777
networks: chains,
7878
projectId,
7979
transports,

‎web-devtools/src/utils/getDisputeRequestParamsFromTxn.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { getPublicClient } from "@wagmi/core";
22
import { type GetTransactionReceiptReturnType, decodeEventLog, getEventSelector } from "viem";
33

4-
import { wagmiConfig } from "context/Web3Provider";
4+
import { wagmiAdapter } from "context/Web3Provider";
55
import { iArbitrableV2Abi } from "hooks/contracts/generated";
66
import { isUndefined } from "utils/isUndefined";
77

88
export const getDisputeRequestParamsFromTxn = async (hash: `0x${string}`, chainId: number) => {
99
try {
10-
const publicClient = getPublicClient(wagmiConfig, { chainId });
10+
const publicClient = getPublicClient(wagmiAdapter.wagmiConfig, { chainId });
1111
if (!publicClient) return;
1212
const txn: GetTransactionReceiptReturnType = await publicClient.getTransactionReceipt({
1313
hash,

0 commit comments

Comments
 (0)