title: How to add an array of objects that I receive to an array inside of a struct?
body: <p>I am using Solidity with Hardhat and I am trying to loop through an array that I am receiving and adding it to an array that is inside of a struct. But I keep getting errors like:</p>
  <pre><code>Error: invalid address or ENS name (argument=&quot;name&quot;, value={&quot;country&quot;:&quot;United States&quot;,&quot;signature&quot;:&quot;USA-123456&quot;,&quot;date&quot;:&quot;5/6/2022&quot;}, code=INVALID_ARGUMENT, version=contracts/5.6.2)
  </code></pre>
  <p>I have the following code in my Contract:</p>
  <pre><code>contract GlobalPassport {
  
  event EmitPassportInfo(address[] citizenship);
  
      struct PassportInfo {
          address[] citizenship;
      }
  
      PassportInfo[] public citizen;
  
      function createNewPassport(address[] memory _citizenship) public {
          citizen.push(PassportInfo(_citizenship));
  
          emit EmitPassportInfo(_citizenship);
      }
  
  }
  </code></pre>
  <p>And I am calling the function like this:</p>
  <pre><code>const person =  {
        citizenship: [
            {
                country: 'United States',
                signature: 'USA-123456', // global country code known to everyone
                date: timestamp
            },
            {
                country: 'Colombia',
                signature: 'COL-123456', // global country code known to everyone
                date: timestamp
            },
        ],
  }
  
  await globalPassportContract.createNewPassport(person.citizenship)
  </code></pre>
  <p>Could anyone point me in a good direction for this?</p>