title: Calling function in truffle console error
body: <p>How do I correctly call a function of a contract that in the truffle console?</p>
  
  <p>Using the petshop example project, I migrated the contract onto the network successfully. </p>
  
  <p>In the truffle console I executed:</p>
  
  <pre><code>var ad = Adoption.deployed()
  </code></pre>
  
  <p>This yields the reply:</p>
  
  <pre><code>undefined
  </code></pre>
  
  <p>When I execute <code>ad.adopt(23)</code>; adopt being the function name and 23 being the unit parameter; I get the exception <code>TypeError: ad.getAdopters is not a function</code></p>
  
  <p>What was my mistake in calling the function?</p>
  
  <p>Thanks!</p>