Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 417 Bytes

dubious_typecast.md

File metadata and controls

19 lines (11 loc) · 417 Bytes

Dubious Typecast

Configuration

  • Check: pess-dubious-typecast
  • Severity: Medium
  • Confidence: High

Description

Highlights explicit typecasts, where the result value can differ from the original one. E.g., uint8(uint256(1e18)), uint256(int256(-1)).

Vulnerable Scenario

test scenario

Recommendation

Verify that the typecast doesn't break the code.