enter image description here

Above is the the error I'm getting when trying to access the retrieve method from the smart contract I've written although I'm able to get the contract object which means I've connected to the contract successfully

I've also attached my solidity contract here as well below also attached my js code enter image description here enter image description here

  • Seems like you forget to provide the error in your question.
    – MShakeG
    Sep 4, 2023 at 19:37

1 Answer 1


Make sure you are using the correct ABI , find the retrieve function in the ABI . Also check your ethers version and check the docs for that version , how are they calling the contract. Also try to hit the contract from block explorer if verified otherwise use remix.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.