title: TypeError: Cannot read properties of undefined (reading '0'). Terminal hit this error after deployment of script
body: <p>I get such a problem in my code. I fight and fight, I still haven't found an error :(</p>
  <p>Terminal after call this script hit &quot; TypeError: Cannot read properties of undefined (reading '0')&quot;</p>
  <pre><code>
    const nft = &quot;cardienft.json&quot;;
  
    
    let rares = JSON.parse(fs.readFileSync(nft));
    let nonce = 73;
    for(let i = 0; i &lt; 2000; i += 25) {
        let moonies = [];
        for(let j = 0; j &lt; 25; j++) {
          moonies.push({ uri: rares.doggies[i+j].uri, moonieType: 6 });
        }
        console.log(await Gateway.forgeRares(moonies, { gasLimit: 10000000, gasPrice: 2000000000, nonce: nonce }));
        nonce++;
        console.log(i + ' to ' + (i+25) + ' forged');
    } ```
  </code></pre>