Is it safe to define the token id outside of a minting loop and increment per loop as below:
uint256 supply = totalSupply();
for (uint i = 1; i <= numFati; i++) {
_safeMint(msg.sender, (supply + i));
}
or should I call totalSupply() for every single mint like so:
for (uint i = 1; i <= numFati; i++) {
_safeMint(msg.sender, totalSupply());
}
I’m interested in reducing the gas costs as much as possible but I worry about multiple mintings occurring simultaneously