Hi everyone, I am very new to Moralis but I am working on a project that is soon due and I cannot figure out how to make write calls to my contract. Some background, I am not using any Moralis online service so I do not have API key plugged in my project. I understood that fro basic calls to the blockchain I do not need access to the API. The way I called my view functions was via const { runContractFunction: functionName } = useWeb3Contract({ ....abi, addresss....})
and then I would just do something like onClick = {async function () { await functionName(...);}}
This works fine and I able to get data back. The problem arises when I try to write to my contract and get some returned value back. Since parameters I want to pass to the contract change dynamically, I figured I cannot use useWeb3Contract
hook since after it gets initialized I cannot edit the params anymore. Then I tried to make use of await Moralis.executeFunction(getProposalInfo);
but then I get one very weird error. I attached screenshot. Here is also link to my component. Thanks!
Link to code: https://drive.google.com/file/d/1I0OjmuEoVO_OKc-3qatj97Aj51BAfs-l/view?usp=sharing