Hello Forum Gurus,
This might be a very naive question, but since I have no idea how to tackle this I must ask. I have following options object:
options = {
contractAddress: g.address,
functionName: “addToBeet”,
abi: a.abi,
params: {
_beetKey: beetKey,
_betFor: betFor,
_amount: amount,
},
msgValue: amount,
};
and I try to execute this like this:
const receipt = await Moralis.executeFunction(options);
Now, _betFor is a boolean. When it’s set to true everything goes well. If it’s set to false though I get:
['_betFor is required']
When I convert betFor to string then it gets evaluated to true…
Do you know how could I send false value?