Skip to content

Transfer: revert with specific error for Pause and Deactivate #338

@rya-sge

Description

@rya-sge

Custom error for version v3.1.0 and below :

_CMTAT_InvalidTransfer(from, to, value)__

Version v3.2.0:
For transfer, if the contract is in pause or deactivated
EnforcedPaused() (OpenZeppelin)

For transfer, we don't check if the contract is deactivated since the contract must be in the pause state to be deactivated

For mint and burn operations:
Revert with EnforcedDeactivated() if the contract is deactivated

Metadata

Metadata

Assignees

No one assigned

    Labels

    Next releaseThe issue has been merged into dev and will be part of the next release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions