Content pfp
Content
@
https://viem.sh
0 reply
0 recast
0 reaction

jacopo.eth pfp
jacopo.eth
@jacopo.eth
@jxom is it still not possible to read/write by passing functionSelector + args / calldata with viem or wagmi? functionName is not always known I understand type safety would be lost, but I'd love to stop depending on ethers due to this
1 reply
0 recast
11 reactions

jxom  pfp
jxom
@jxom
Makes sense! Can take a look this weekend to widen the type. You can workaround for now by doing: const hash = client.readContract({ address: '0x...', abi, functionName: '0xdeadbeef' as any }) This should work as internally our ABI Function encoding/decoding utils accept selectors as names.
1 reply
0 recast
2 reactions