Skip to content

Commit

Permalink
fix(web-devtools): wagmi-config-import
Browse files Browse the repository at this point in the history
  • Loading branch information
Harman-singh-waraich committed Feb 6, 2025
1 parent beb44c8 commit 9e9d62e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web-devtools/src/context/Web3Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ if (!projectId) {
throw new Error("WalletConnect project ID is not set in NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID environment variable.");
}

const wagmiAdapter = new WagmiAdapter({
export const wagmiAdapter = new WagmiAdapter({
networks: chains,
projectId,
transports,
Expand Down
4 changes: 2 additions & 2 deletions web-devtools/src/utils/getDisputeRequestParamsFromTxn.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { getPublicClient } from "@wagmi/core";
import { type GetTransactionReceiptReturnType, decodeEventLog, getEventSelector } from "viem";

import { wagmiConfig } from "context/Web3Provider";
import { wagmiAdapter } from "context/Web3Provider";
import { iArbitrableV2Abi } from "hooks/contracts/generated";
import { isUndefined } from "utils/isUndefined";

export const getDisputeRequestParamsFromTxn = async (hash: `0x${string}`, chainId: number) => {
try {
const publicClient = getPublicClient(wagmiConfig, { chainId });
const publicClient = getPublicClient(wagmiAdapter.wagmiConfig, { chainId });
if (!publicClient) return;
const txn: GetTransactionReceiptReturnType = await publicClient.getTransactionReceipt({
hash,
Expand Down

0 comments on commit 9e9d62e

Please sign in to comment.