title: Solidity Declaration error related to Wallets in Money paid section
body: <p>I'm new to solidity</p>
  <p>My goal is to get this code to work in remix IDE solidity compiler</p>
  <p>The code is a &quot;for&quot; function that is meant to trigger when deceased = true, (The code is for an inheritance contract) but it is having problems with &quot;wallet&quot; part of the code on the final two lines.</p>
  <p>I've tried looking on here and elsewhere (such as Solidity/Remix IDE documentation) to find a solution but struggling with this particular problem.</p>
  <p>Ive tried removing the &quot;[i]&quot;, adding &quot;;&quot; and adding a underscore at the beginning wallet (such as &quot;_wallets&quot;)</p>
  <p>This is the code in question that is having issues:</p>
  <pre><code>function setup(address _wallet, uint _inheritance) public oneOwner {
      _wallet.push(_wallet);
      Inheritance [_wallet] = _inheritance; 
  }
  
  function moneyPaid() private isDeceased {
      for (uint i=0; i &lt; wallets.length; i++) {
          wallets;[i].transfer(Inheritance[wallets][i]);
      }
  }
  </code></pre>
  <p>These are the errors I'm shown:</p>
  <p>DeclarationError: Undeclared identifier.</p>
  <pre><code>|
  36 | for (uint i=0; i &lt; wallet.length; i++) {
  |                       ^^^^^^
  </code></pre>
  <hr />
  <p>DeclarationError: Undeclared identifier.</p>
  <pre><code>|
  37 | wallets;[i].transfer(Inheritance[wallets][i]);
  |    ^^^^^^^
  </code></pre>
  <hr />
  <p>DeclarationError: Undeclared identifier.</p>
  <pre><code>|
  37 | wallets;[i].transfer(Inheritance[wallets][i]);
  |                                     ^^^^^^^
  </code></pre>