I am having some trouble with getting the adopt button to work in the truffle pet shop tutorial:


I have worked through the truffle petshop example twice from scratch and I have also looked at the proposed solution here:

Truffle Tutorial pet-shop with test-rpc adopt button doesn't work

However, I find that metamask is connecting to my petshop application but the adopt button is not doing anything. I've hosted the app here for now:


To avoid typos, I have copied and pasted code from the truffle site into my files. May I ask how this could be resolved?

1 Answer 1


I found this answer to this

The error I was making what that I was deploying to a localhost on a virtual private server (ubuntu) but my metamask was set to Ropsten (on windows)

I resolved this by deploying to Ropsten using these helpful tutorials



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.