Skip to main content

is_deprecated_oz

Function is_deprecated_oz 

Source
fn is_deprecated_oz(gcx: Gcx<'_>, function_id: FunctionId) -> bool
Expand description

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.