RustFund

First Flight #36
Beginner FriendlyRust
100 EXP
View results
Submission Details
Severity: low
Invalid

Typographical Error in RustFund Contract

Summary

The Fund struct contains a typo: dealine_set instead of deadline_set.

Vulnerability Details:
The affected code is in the Fund struct:

rust

#[account]
#[derive(InitSpace)]
pub struct Fund {
// ...
pub dealine_set: bool,
}
  • Typo: Used consistently but misnamed.

Impact:

  • Readability: Confuses developers reading the code.

  • No Functional Impact: Logic unaffected due to consistent usage.

Tools Used: Manual Review

Recommendations:
Correct the typo:

rust

pub struct Fund {
// ...
pub deadline_set: bool,
}
Updates

Appeal created

bube Lead Judge 2 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

[Invalid] Wrong naming of `deadline_set`

This is strong informational finding, there is no impact for the protocol. The variable is the same on all places.

Support

FAQs

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