Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 510 Bytes

public_vs_external.md

File metadata and controls

23 lines (13 loc) · 510 Bytes

Public vs External

Configuration

  • Check: pess-public-vs-external
  • Severity: Low
  • Confidence: Medium

Description

Detects functions that have public modifiers and could be turned into external (not used in the contract)

Potential Improvement

There could be FP's because of inheritance

Vulnerable Scenario

test scenarios

Recommendation

Mark public functions as external where it is possible to enhance control-flow readability.