Soulmate.sol::totalSouls() When only one person mints an NFT, the totalSouls count is incorrect
Add this test to SoulmateTest.t.sol and run forge test --match-test test_totalSouls -vvvv
the issue
The output confirms that when only one person mints an NFT, the souls count is 0 instead of 1
When only one person mints, one soul is disregarded.
Manual review
Add conditional checks in the totalSouls() function,Even if nextID is 0, one soul can still be counted correctly
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.