Hi everyone I am developing dApp on Vue2 and using the state management plugin Vuex. I got a main component which containing a few child components, which calling Moralis functions such as get user wallet’s address, balance etc whereas I will trigger the Moralis.start() function at the main component (might look at the simple architecture diagram below).
I encountered encountered some difficulties when doing as I always get errors like:
- Error: Web3Api not initialized, run Moralis.start() first
- Error: Cannot execute Moralis.enableWeb3(), as Moralis Moralis.enableWeb3() already has been called, but is not finished yet
Could anyone please let me know how should I arrange those function calls? Please let me know if you need further information! Thanks in advanced for your kind help.