Is there any changes on executeFunction API
Iām trying to run smart contract function but it throws vars is required
tried 2 different smart contracts but it seems like Params is not detected
code example
const contractProccessor = useWeb3ExecuteFunction()
async function createProfile () {
let options = {
contractAddress : addressTwo,
functionName : "createProfile",
abi : ABI,
param :{
chain: "mumbai",
to : "0xeb655e6e85b4479450c5903d42e51cd5fa767312",
handle: "zer0dot",
imageURI : 'https://ipfs.io/ipfs/QmY9dUwYu67puaWBMxRKW98LPbXCznPwHUbhX5NeWnCJbX',
followModule: ZERO_ADDRESS,
followModuleInitData: [],
followNFTURI: 'https://ipfs.io/ipfs/QmTFLSXdEQ6qsSzaXaCSNtiv6wA56qq87ytXJ182dXDQJS',
}
}
await contractProccessor.fetch({
params: options,
onSuccess : () => console.log("congratulations you made it"),
onError : (error) => console.log(error)
})
}
i get this error vars is required
and tried to to use a function from moralis example how to interact with smart contract from moralis
async function donate() {
let donateOptions = {
contractAddress: "0x356d2E7a0d592bAd95E86d19479c37cfdBb68Ab9",
functionName: "newDonation",
abi : ABI_FOUR,
Params: {
Note: "Thanks for your work",
},
msgValue: Moralis.Units.ETH(0.1),
}
try {
await Moralis.executeFunction(donateOptions)
}
catch(err) {
console.log('Ohhhh nooo!');
console.log(err);
}
}
this function takes one parameter called note and few weeks a go Iāve tried interacting with it and worked but now it throws an error [ānote is requiredā]
what could be wrong here