diff --git a/contracts/mvp/CommunityERC20.sol b/contracts/mvp/CommunityERC20.sol index d674722..f1b4984 100644 --- a/contracts/mvp/CommunityERC20.sol +++ b/contracts/mvp/CommunityERC20.sol @@ -38,6 +38,8 @@ contract CommunityERC20 is * */ function mintTo(address[] memory addresses, uint256[] memory amounts) external onlyOwner { + require(addresses.length == amounts.length, "WRONG_LENGTHS"); + for (uint256 i = 0; i < addresses.length; i++) { uint256 amount = amounts[i]; require(totalSupply() + amount <= maxSupply, "MAX_SUPPLY_REACHED");