ERC 1155 has a function called _mint: https://docs.openzeppelin.com/contracts/3.x/api/token/erc1155#ERC1155-_mint-address-uint256-uint256-bytes-
_mint(address account, uint256 id, uint256 amount, bytes data)
and it lets one create amount nfts and send them to the account. Is there an efficient way so that we can specify a million accounts to which the minted nfts are to be distributed?
Is the best way to create a for loop that goes upto a million and _mint nfts for each account? Wouldn't that cause ganache to run out of memory, and therefore will consume excessive gas on the blockchain?