Wagmi Connectors: `useWalletClient` not working
johanneskares opened this issue · 2 comments
johanneskares commented
I'm successfully running the Wagmi Demo: packages/wagmi-test-demo
I'm doing a small modification and adding in App.tsx
const { data: client } = useWalletClient()
and changing the sendTransactionOnButtonPress
to
const sendTransactionOnButtonPress = async () => {
client?.sendTransaction({
to: "0xe0a942ff2e1724A2fe10627728bE327a43fE8C26",
value: 100n,
chain: sepolia,
});
};
I'm getting this error.
TransactionExecutionError: The method does not exist / is not available.
johanneskares commented
I think I find the underlying issue in @wagmi/core
pavlovdog commented
Hey! It seems to be working, closing this