Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TilakMaddy committed Mar 10, 2025
1 parent 22de492 commit 4d063b8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions aderyn_core/src/detect/detector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ pub(crate) enum IssueDetectorNamePool {
UselessPublicFunction,
UnindexedEvents,
RequireWithoutString,
NonReentrantIsNotBeforeOthers,
NonReentrantNotFirstModifier,
BlockTimestampIsWeakDeadline,
LiteralInsteadOfConstant,
UnsafeOzERC721Mint,
Expand Down Expand Up @@ -305,7 +305,7 @@ pub fn request_issue_detector_by_name(detector_name: &str) -> Option<Box<dyn Iss
IssueDetectorNamePool::RequireWithoutString => {
Some(Box::<RequireWithStringDetector>::default())
}
IssueDetectorNamePool::NonReentrantIsNotBeforeOthers => {
IssueDetectorNamePool::NonReentrantNotFirstModifier => {
Some(Box::<NonReentrantBeforeOthersDetector>::default())
}
IssueDetectorNamePool::BlockTimestampIsWeakDeadline => {
Expand Down
2 changes: 1 addition & 1 deletion aderyn_core/src/detect/low/non_reentrant_before_others.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl IssueDetector for NonReentrantBeforeOthersDetector {
}

fn name(&self) -> String {
format!("{}", IssueDetectorNamePool::NonReentrantIsNotBeforeOthers)
format!("{}", IssueDetectorNamePool::NonReentrantNotFirstModifier)
}
}

Expand Down
4 changes: 2 additions & 2 deletions reports/report.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion reports/report.sarif

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4d063b8

Please sign in to comment.