i installed plugin and am trying to add fiat on ramp to my dex but their an issues in code that i dont know. i have the buy crypto function execution upon onclick of the button
Buy Crypto
</button>
async function init(){
await Moralis.initPlugins();
await Moralis.enable();
await listAvailableTokens()
const tokens = await Moralis.Plugins.oneInch.getSupportedTokens({
chain: 'eth', // The blockchain you want to use (eth/bsc/polygon)
});
console.log(tokens);
}
function buycrypto(){
Moralis.Plugins.fiat.buy();
}
init();