MembershipFactory.upgradeTier() reverts with no custom error if fromTierIndex = 0
When trying to call MembershipFactory.upgradeTier() with fromTierIndex parameter equal to 0, function will revert when trying to mint(fromTierIndex - 1), as mint() expects a uint256, which cannot be negative.
Function upgradeTier() reverts without a custom message that indicates why the error happenned, this does not comply with good practices of contract development.
Manual review
Add a new require code line for this situation:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.