The EggstravaganzaNFT::mintEgg() returns a bool value (true) that is always returned unconditionally and is not used by the caller EggHuntGame::searchForEgg() in the game contract. This leads to redundant code and may mislead developers into thinking the return value holds meaningful logic, which it does not.
Here is the affected function in EggstravaganzaNFT.sol which always returns a bool which is not being used.
Here is the caller function in EggHuntGame.sol
Impact:Low-No functional vulnerability or reentrancy issue, but affects code clarity and gas optimization
Consider removing this return value
Strategy to save gas and minimize transaction costs
Returns a boolean value that isn't utilized by its caller
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.