Hardhat artifacts and viem #5066
-
Hello, We are using Hardhat for compiling our contracts, we need to use the resulting artifacts with viem but we dont get the typesafety because they are not exported Thank you very much in advance |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Hi @josemarinas, are you using the |
Beta Was this translation helpful? Give feedback.
-
i was able to generate
|
Beta Was this translation helpful? Give feedback.
-
Hey @josemarinas , I'm facing the exact same issue. Did you figure it out ? |
Beta Was this translation helpful? Give feedback.
Yes, in the end I used wagmi-cli with this
wagmi.config.ts
, you'd need to update the paths to your own. Then you can import the generated abi withviem