Whne using the useweb3contract it fails when i pass in a string as a variable and only accepts it typed.
E.g
await runContractFunction(
{
abi: contractAbi,
contractAddress: contractAddrr,
functionName: "saveString",
params: {
_message: stringAsVariable,
}
}
);
await runContractFunction(
{
abi: contractAbi,
contractAddress: contractAddrr,
functionName: "saveString",
params: {
_message: "raw string",
}
}
);
The first doesnt work but the second does. I need help urgently