How to deploy multiple ERC721PresetMinterPauserAutoId?

I’ve built and run this contract ;

const ERC721PresetMinterPauserAutoId = artifacts.require("ERC721PresetMinterPauserAutoId");

It does everything I need it to, save for one problem. I currently need to type in'account#')
over and over.

I’ve tried to incorporate something like this
constructor() { for(uint i = 0; i < 50; i++) { super._mint(msg.sender, i); } }
But without success. Where should I include that enumerator in the function?

In the deploy.js file or in the contract.sol file?

What error do you get? It looks like it should work, unless it runs out of gas. You should try with a number smaller than 50 to get started.

Actually you should be writing _mint instead of super._mint though it may not be causing any issues.

First, thanks for the reply!

At the time, with the way I slapped it all together, I was just getting a compile error.

Where should I be placing this section of code;

constructor() { for(uint i = 0; i < 50; i++) { super._mint(msg.sender, i); } }

As part of the migrations/2_deploy.js, within the module.exports {} segment?
back inside the contracts/Migrations.sol, somewhere?

This should go in the Solidity constructor for your ERC721 contract.

Use Contracts Wizard to build your code with the features you want, you will get something like the preset, and include the for loop inside the constructor.

Wow! That’s cool, thank you @frangio! This should help a lot. Cheers!