Skip to content

Remove deprecated features #3918

@frangio

Description

@frangio

There are various deprecated functions that need to be removed in the next major version. These are annotated in the docs such as:

* NOTE: This function is deprecated in favor of {_grantRole}.

We should search and remove all of these.

A list, not necessarily exhaustive:

  • Deprecated contracts
    • GovernorProposalThreshold
    • ERC777
  • Deprecated draft-*.sol files:
    • draft-IERC2612.sol
    • draft-ERC20Permit.sol
    • draft-IERC20Permit.sol
    • draft-ERC721Votes.sol
    • draft-EIP712.sol
  • Deprecated functions
    • SafeMath.sol: function that need use memory for the error reason
    • EnumerableMap.sol: function that need use memory for the error reason
    • AccessControl.sol: _setupRole
    • BeaconProxy.sol: _setBeacon
  • Deprecated state variables
    • GovernorCompatibilityBravo.ProposalDetails.proposer (not deprecated but not needed since we have Governor.ProposalCore.proposer)
    • GovernorVotesQuorumFraction._quorumNumerator

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking changeChanges that break backwards compatibility of the public API.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions