Hi, my app was working some weeks ago, now after I created a new moralis server and moved my app on it, its not working anymore. I get this error on browser console: Moralis.Web3.enable() is not a function
.
Here is my code:
$(document).ready(async function(){
web3 = await Moralis.Web3.enable();
TokenInstance = new web3.eth.Contract(abi.Token, TokenAddress);
MarketplaceInstance = new web3.eth.Contract(abi.Marketplace, MarketplaceAddress);
});
What should I change or how can I create an older version of moralis server? Thank you for your time!