Skip to content

Docs: DripGovernor::transfer_authority is documented as deprecated but has no #[deprecated] attribute #313

Description

@Jaydbrown

The doc comment on DripGovernor::transfer_authority (contracts/governor/src/lib.rs) says: "Deprecated: Use propose_authority + accept_authority instead for the safer 2-step transfer pattern (Ownable2Step)." This is prose only — the function has no #[deprecated(note = "...")] attribute, so nothing in the toolchain (compiler warnings, IDE hints, clippy) actually surfaces this to a caller still using the single-step transfer_authority. Since the whole point of flagging it as deprecated is to steer integrators toward the safer 2-step flow, the warning should be enforced by the compiler, not just left in a comment that only shows up if someone reads the source.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions