[SOLVED] Vanilla JS (Interacting with smart contracts)

Hey guys! I have an issue. For the record: http-server has been started. After logging in I am pressing the Donate button and it says

ParseUser {id: 'dPl2d0SdlIYYCql5CNpGARAb', _objCount: 1, className: '_User'}
(index):27 0xd2dc28f65c76510a4a930d28664a60828c4cf64e
(index):51 Uncaught (in promise) TypeError: Moralis.User.executeFunction is not a function
    at HTMLButtonElement.donates ((index):51:32)

What is the code that you wrote for that button?

1 Like

Issue solved! Instead of

await Moralis.executeFunction(options);

I wrote

await Moralis.User.executeFunction(options);

1 Like

Thanks for the prompt response!