Skip to main content

Typographical Errors

What it detects​

Simple typos can lead to unused variables, wrong calls, or security bugs. This detector scans identifiers for likely misspellings that differ slightly from others in the same scope.

Typical symptoms​

  • Variables declared but never used
  • Functions with names similar to others but not referenced

Solidity snippet (v0.8.25)​

pragma solidity ^0.8.25;

contract TypoExample {
uint256 public total;
function add(uint256 amount) external {
totl += amount; // misspelled variable
}
}

Why it matters on EVM​

Typos often hide logic errors that attackers can leverage, such as skipped validations or incorrect storage access.