Skip to content

Commit 01edde5

Browse files
committed
fix: wagmi generate:hooks
1 parent a283d90 commit 01edde5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

web-devtools/wagmi.config.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { parse, join } from "path";
44
import { type Config, type ContractConfig, defineConfig } from "@wagmi/cli";
55
import { react, actions } from "@wagmi/cli/plugins";
66
import dotenv from "dotenv";
7-
import { type Chain } from "viem";
7+
import { type Chain, type Abi } from "viem";
88
import { arbitrum, arbitrumSepolia, gnosis, gnosisChiado, mainnet, sepolia } from "viem/chains";
99

1010
import IArbitrableV2 from "../contracts/artifacts/src/arbitration/interfaces/IArbitrableV2.sol/IArbitrableV2.json" assert { type: "json" };
@@ -71,7 +71,7 @@ const readArtifacts = async (type: ArbitratorTypes, viemChainName: string, hardh
7171
address: {
7272
[chain.id]: jsonContent.address as `0x{string}`,
7373
},
74-
abi: jsonContent.abi,
74+
abi: jsonContent.abi as Abi,
7575
});
7676
}
7777
}
@@ -115,11 +115,11 @@ const getConfig = async (): Promise<Config> => {
115115
...deploymentContracts,
116116
{
117117
name: "IHomeGateway",
118-
abi: arbitratorContracts.iHomeGatewayAbi,
118+
abi: arbitratorContracts.iHomeGatewayAbi as Abi,
119119
},
120120
{
121121
name: "IArbitrableV2",
122-
abi: IArbitrableV2.abi,
122+
abi: IArbitrableV2.abi as Abi,
123123
},
124124
],
125125
plugins: [react(), actions()],

0 commit comments

Comments
 (0)