Trick or Treat

First Flight #27
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Missing Test Coverage

Summary

Tests were not included in the initial audit. Test coverage is essential for identifying overlooked issues and ensuring the contract functions as intended.

Vulnerability Details

Tests are a critical part of the auditing process, as they help catch potential issues that might otherwise go unnoticed. I’ve created a set of tests to verify contract functionality, available here: Test Suite.

Steps to Run Tests:

  1. Create a file named TrickOrTreat.t.sol in the tests directory.

  2. Copy the code from the provided link into this file.

  3. Run the tests with the following command:

    forge coverage

Impact

Low

Tools Used

Foundry

Recommendations

Include a comprehensive test suite in future audits to verify contract behavior and minimize overlooked vulnerabilities.

Updates

Appeal created

bube Lead Judge 8 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.