Hi guys,
I was attempting to do use the useWeb3ExecuteFunction()
react-moralis hook but ran into the error: Cannot read properties of undefined (reading ‘call’)
So I decided to try and circumvent this issue with useMoralisWeb3Api()
and runContractFunction(options)
The call with the options + params etc. seems to work with this method but now I am getting {code: 141, error: 'Web3 API error while calling /:address/function'}
as a error
Any ideas? I cant seem to find much information on this error
Some details:
- Its on the Kovan testnet, not a localchain
- I’ve tried it on two different Moralis server instances
Versions:
“moralis”: “^0.0.181”,
“react-moralis”: “^0.3.11”,