Uncaught (in promise) Error: call revert exception when trying to call a read only function

I tried deploying it to the ganache and all functions were working too.

now, try to call the function from your front end, in that contract that was deployed from remix in ganache

Thank you so much! It worked! Why was I getting those errors? Is it because of my connection with ganache?

I don’t know what happened

1 Like