[Moralis.enableWeb3()]

HI,

I using Web3Auth Wagmi Connector for authen by link
https://docs.moralis.io/authentication-api/evm/how-to-sign-in-with-web3authio

Everything is OK. But i have 1 problem when tried send ERC20 token using useWeb3Transfer from react-moralis.

I using fetch funtion from const {fetch, error, isFetching} = useWeb3Transfer

But how to enableWeb funtion start, i dont know how to start it

 await Moralis.enableWeb3({
      provider: 'web3Auth',
      clientId: process.env.NEXT_PUBLIC_API_KEY_WEB3AUTH,
      chainId: process.env.NEXT_PUBLIC_MAIN_NET_CHAINID,
      rpcTarget: process.env.NEXT_PUBLIC_RPC_TARGET,
      chainNamespace: CHAIN_NAMESPACES.EIP155,
    });

Hi @vampiregrodon

Since you are already using wagmi package you can use the wagmi useWriteContract hook to call the smart contract functions. You dont have to use Moralis.enableWeb3()/

Here is the wagmi docs for more details