title: get data from another contract (solidity)
body: <p>I'm new in developing contracts and i'm developing a React Dapp.
  in this context I have to get a list of details from another contract.
  here are the details :
  I have <code>contract JobOffer</code> which have a list of candidacy ( <code>mapping(uint256 =&gt; address[]) idJobAddressCandidat;</code>   ) unit256 present the id of candidacy and those addresses are the addresses of candidate.
  the whole information of candidate is stocked by another contract called <code>contract CVStorage</code>
  this contract have a function which returns all the informations :</p>
  <pre><code>function getAllDetails(address _addressCandidat)
          public
          view
          returns (CV memory)
      {
          return CVs[_addressCandidat];
  </code></pre>
  <p>the problem is: I want to get the list of details for each address linked to an id of candidacy in the mapping ( returning a list of details of candidates in a candidacy) ; the signature of the function i want to develop is :
  <code>getAllCandidaturesOfJobOffer(uint256 _idJobOffer) public view returns ( CV [] memory )</code></p>
  <p>PS : I tried to get all those information from the front end (React) by getting the array of addresses of a candidacy using this function :</p>
  <pre><code>function getAllCandidaturesOfJobOffer(uint256 _idJobOffer)
          public
          view
          returns (address[] memory)
      {
          return idJobAddressCandidat[_idJobOffer];
      }
  </code></pre>
  <p>and then i get for each address the data from the other CVStorage contract ( using the function <code>getAllDetails(address _addressCandidat) </code> but unfortunately i got usually an error maybe because I shouldn't call two contracts in the same function or two await methods in the same function.
  thanks for giving me your time.</p>