Hey,
I was testing the demo and ran into the following error in the browser console:
index-DSzRoHn-.js:40 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'getPublicParams')
at zP (index-DSzRoHn-.js:40:316719)
at async P (index-DSzRoHn-.js:40:318373)
I followed the instructions provided in the documentation for the fhevm-react-template.
However, I encountered an error both when running it locally and when accessing the deployed version at fhevm-react-template.vercel.app.
Is this behavior expected, or is there something I might be missing?
I’m trying to work with the fhevm-react-template (specifically the EncryptedERC20 example).
I cloned the repository and followed all the steps mentioned in the README.
However, when I try to run the app locally, I encounter an error in the browser console.
I tried debugging it and it seems the issue is related to creating an instance of the FHEVM, but I’m not entirely sure.
I’m not sure what to do next. Could you please help?
Hi Kanna, the react template is still under development. Basically, you are trying to run an old version (v0.6.0) which is not supported anymore. We are actively working on a new fhevm react framework supporting the latest version of the FHEVM protocol.