title: I have an error when reading a method with web3 (call)
body: <p>I am trying to learn how to integrate with web3 but I am having some problems. (normal I just started)</p>
  <p>But there is a problem that I can't solve.</p>
  <p><code>Uncaught TypeError: Cannot read property 'retrieve' of undefined</code></p>
  <p>I try to call a function but it does not work and I do not know how to solve it.</p>
  <p>Here is the code:</p>
  <pre><code>const abi_c = [{&quot;inputs&quot;: [],&quot;name&quot;: &quot;retrieve&quot;,&quot;outputs&quot;: [{&quot;internalType&quot;: &quot;uint256&quot;,&quot;name&quot;: &quot;&quot;,&quot;type&quot;: &quot;uint256&quot;}],&quot;stateMutability&quot;: &quot;view&quot;,&quot;type&quot;: &quot;function&quot;},{&quot;inputs&quot;: [{&quot;internalType&quot;: &quot;uint256&quot;,&quot;name&quot;: &quot;num&quot;,&quot;type&quot;: &quot;uint256&quot;}],&quot;name&quot;: &quot;store&quot;,&quot;outputs&quot;: [],&quot;stateMutability&quot;: &quot;nonpayable&quot;,&quot;type&quot;: &quot;function&quot;}];
  const account = &quot;0x644f1439DBfc743853031d79021890af54bCA8Ae&quot;;
  
  const web3js = new Web3(window.ethereum);
  ethereum.autoRefreshOnNetworkChange = false;
  
  var contract = web3js.eth.contract(abi_c, account);
  var result = contract.methods.retrieve().call();
  console.log(result);
  </code></pre>