Content pfp
Content
@
0 reply
0 recast
0 reaction

Michael Pfister pfp
Michael Pfister
@pfista
Any tips on resolving this without having to add explicit types for getContract? "The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.ts(7056)"
2 replies
1 recast
12 reactions

Phresh rider pfp
Phresh rider
@phresh
Can you try using a smaller ABI, hard to tell without seeing anything, but I feel like i've ran into that before --- https://github.com/wevm/viem/discussions/538
1 reply
0 recast
1 reaction

Michael Pfister pfp
Michael Pfister
@pfista
Yes I tried that by manually using parseABI, it helped on a few contracts but there is still one I cannot get it fixed when using the minimal functions I need from the contract. I made a stackblitz to repro here: https://github.com/wevm/viem/issues/2178
1 reply
0 recast
0 reaction

Phresh rider pfp
Phresh rider
@phresh
Not really a typescript guru by any means and messed around for awhile with configs and all that, but the abi isn't that bit, so try this (got it working) - change file to json and make json ```import exampleAbi from './abi.json';``` Then add to tsconfig ```"resolveJsonModule": true,```
1 reply
0 recast
1 reaction

Phresh rider pfp
Phresh rider
@phresh
eh guess ``` dont work in farcaster yet lol- heres the working repo --- https://stackblitz.com/edit/viem-getting-started-nupzgn?file=dist%2Fgenerated.js
1 reply
0 recast
0 reaction

Michael Pfister pfp
Michael Pfister
@pfista
Hmm it does build but typing still appears to be broken. Thanks for trying 2000 $degen
1 reply
0 recast
0 reaction