Content
@
0 reply
0 recast
0 reaction
Vladyslav Dalechyn
@dalechyn.eth
pro tip 🥷 don't cast `string` to `Address`. Use `getAddress` instead and always get EIP-1191 checksummed address. https://viem.sh/docs/utilities/getAddress
1 reply
0 recast
0 reaction
alex
@alexgrover.eth
even better, make a zod validator that outputs a branded type to differentiate it from Hex etc!
1 reply
0 recast
2 reactions
Vladyslav Dalechyn
@dalechyn.eth
do you have a snippet to share?
1 reply
0 recast
0 reaction