Hello! Iām facing some issues running my chainlink performUpkeep
function on FE that take in parameters. Iāve also tried with other setter functions on my contract, but nothing happens as well. Iāve seen people write similar code online for setter functions and it seemed to work for them, so Iām really at my wits end here.
For additional context, the below code works for getter functions where params are empty, aka params: {}
const { runContractFunction: performUpkeep } = useWeb3Contract({
abi: abi,
contractAddress: raffleAddress,
functionName: "performUpkeep",
params: { performData: 0x0 }, // I suspect something is wrong with this, but I'm not sure
})
// The function in the contract
function performUpkeep(bytes calldata /* performData */) external override {}
So I try to run performUpkeep in my FE via a button, but nothing happens. Also, the parameter here is actually unused in my contract. Which is why itās commented out
Iām unsure how to debug this or move forward. Would appreciate some help! Thank you!!