How do I correctly call a function of a contract that in the truffle console?
Using the petshop example project, I migrated the contract onto the network successfully.
In the truffle console I executed:
var ad = Adoption.deployed()
This yields the reply:
When I execute ad.adopt(23); adopt being the function name and 23 being the unit parameter; I get the exception TypeError: ad.getAdopters is not a function
How to solve this error?