You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to migrate to this library from my bespoke code that I wrote. I am using typechain to generate types from my contracts, which makes writing my contract reads and writes really nice because I get a little bit of type safety.
Is it possible to use those types with this library? I noticed that it doesn't support generics, so the data property that gets returned from the useContractRead hook is a ethers Result type.
I'd love any possible ideas to bring these two tools together!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I am trying to migrate to this library from my bespoke code that I wrote. I am using typechain to generate types from my contracts, which makes writing my contract reads and writes really nice because I get a little bit of type safety.
Is it possible to use those types with this library? I noticed that it doesn't support generics, so the
data
property that gets returned from theuseContractRead
hook is a ethersResult
type.I'd love any possible ideas to bring these two tools together!
Beta Was this translation helpful? Give feedback.
All reactions