Skip to content

Make IERC20Permit derive from IERC20 #3644

@CodeSandwich

Description

@CodeSandwich

When using IERC20Permit all IERC20 functions like transferFrom are not exposed. The address of the ERC-20 token needs to be cast from IERC20Permit to IERC20 to do anything other than permitting. This is awkward and doesn't make much sense, IERC20Permit is a superset of IERC20.

I'm opening an issue and not a one-line PR because it's a breaking change and may be controversial. It also probably can't be published without a major release.

💻 Environment

📝 Details

🔢 Code to reproduce bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions