I am trying to mint 100 pieces of an NFT collection directly to the deployer wallet. I am using hardhat and when I deploy it I run into a "exceeds block gas limit" error. Is there a different approach I can follow to reach my end goal?
constructor(
string memory _name,
string memory _symbol,
string memory _initBaseURI,
string memory _initNotRevealedUri
) ERC721(_name, _symbol) {
setBaseURI(_initBaseURI);
setNotRevealedURI(_initNotRevealedUri);
mintOwner();
}
function mintOwner() internal {
for (uint8 i = 1; i <= 100; i++) {
_safeMint(msg.sender, i);
}
}