Closed pociej closed 1 month ago
When follow mocking connection
mock({ blockchain : 'ethereum', accounts: { return: ['0xd8da6bf26964af9d7eed9e03e53415d37aa96045'] } }) config = createConfig({ autoConnect: true, publicClient: createPublicClient({ chain: mainnet, transport: custom(window.ethereum), }), })
and then try to check currently connected network byt useNetwork hook it keeps returning undefined as well as const { isConnected, address } = useAccount() gives respectively false and undefined.
useNetwork
const { isConnected, address } = useAccount()
false
undefined
sorry, but wagmi if officially not supported.
When follow mocking connection
and then try to check currently connected network byt
useNetwork
hook it keeps returning undefined as well asconst { isConnected, address } = useAccount()
gives respectivelyfalse
andundefined
.