avoid-sha3
March 10, 2025 ยท View on GitHub
The {"extends": "solhint:recommended"} property in a configuration file enables this rule.
Description
Use "keccak256" instead of deprecated "sha3".
Options
This rule accepts a string option for rule severity. Must be one of "error", "warn", "off". Defaults to warn.
Example Config
{
"rules": {
"avoid-sha3": "warn"
}
}
Notes
- Solhint allows this rule to automatically fix the code with
--fixoption
Examples
This rule does not have examples.
Version
This rule was introduced in Solhint 2.0.0-alpha.0