Typos + fix for guide "How to Interact with Smart Contracts Through Your Website"

hi folks, feel free to delete my post after addressing it.

i was using this guide:

but the copy/paste let options = code block is wrong, and does not match your video embedded below it.

changes to make:

  • make Params and Note lowercase, otherwise moralis throws ā€œmissing noteā€ (because it canā€™t parse the ABIā€™s note parameter)
  • remove the await Moralis.User.logOut(); callback
  • replace logOut() with Moralis.executeFunction(options) and (optionally) make logout a callback of that*

basically i had to watch the video to figure out how to invoke my options object. i also couldnā€™t find this executeFunction() feature in the general API docs, only Moralis.Cloud.execute() which is not relevant to this SDK.

cheers!
Ryan

1 Like

Moralis.executeFunction is present in documentation
https://docs.moralis.io/moralis-dapp/web3/web3#executefunction

where did you find Moralis.Cloud.execute()?