Skip to main content

Module deprecated_oz_function

Module deprecated_oz_function 

Source

Re-exportsยง

use super::DeprecatedOzFunction; ๐Ÿ”’
use crate::linter::LateLintPass; ๐Ÿ”’
use crate::linter::LintContext; ๐Ÿ”’
use crate::sol::Severity; ๐Ÿ”’
use crate::sol::SolLint; ๐Ÿ”’
use crate::sol::analysis::OPENZEPPELIN_ROOTS; ๐Ÿ”’
use crate::sol::analysis::source_in_package; ๐Ÿ”’
use solar::sema::Gcx; ๐Ÿ”’
use solar::sema::hir::Expr; ๐Ÿ”’
use solar::sema::hir::ExprKind; ๐Ÿ”’
use solar::sema::hir::FunctionId; ๐Ÿ”’

Staticsยง

DEPRECATED_OZ_FUNCTION

Functionsยง

is_deprecated_oz ๐Ÿ”’
Whether function_id is one of the functions OpenZeppelin deprecated: SafeERC20.safeApprove and AccessControl._setupRole (plus their upgradeable variants). Extensions inherit these functions rather than redeclare them, so resolution still lands on the canonical declaration; a same-name function of an unrelated contract or library stays out, and so does a same-name local declaration, which fails the provenance check.