Im using react-moralis
and noticed a few inconsistencies between it and the Moralis documentation.
This hasn’t been too bad for the most part as I can figure it out. However, I can’t seem to find the functionality for onAccountsChanged()
for setting up listeners to either change or link accounts from Metamask.
I may resort to using the window Ethereum object, however will require overriding a lot of the account logic provided by Moralis.
Am I missing something, or is there a better way to go about this?