Content pfp
Content
@
https://opensea.io/collection/dev-21
0 reply
0 recast
2 reactions

Timur Badretdinov pfp
Timur Badretdinov
@destiner.eth
i love viem, but i really miss the automatic ENS resolution from ethers so i made a custom action to enable it pass ens → address auto-resolved https://gist.github.com/Destiner/277098f8030ae46dd2b7bdea4f5cec68
2 replies
0 recast
5 reactions

Fucory pfp
Fucory
@fucory
Nice! Does it cache the address so next time it doesn’t need to resolve it again?
1 reply
0 recast
2 reactions

Timur Badretdinov pfp
Timur Badretdinov
@destiner.eth
caching is hard to nail so probably won't have that by default (viem also doesn't cache anything afaik) but you'll probably be able to add caching through middleware
1 reply
0 recast
2 reactions

Fucory pfp
Fucory
@fucory
Viem does cache though conservatively compared to wagmi which caches everything by default. There is a withCache util library authors can use if they want to use it Without a cache I wouldn’t recommend people use this generally tbh but it can be fine in many use cases
0 reply
0 recast
0 reaction