Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pause #87

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Pause #87

wants to merge 2 commits into from

Conversation

ricorandom
Copy link

Added the pause feature and the import for the ownable contract.

if (
_tradable != true
) {
revert("Transfers are currently disabled");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -2,10 +2,14 @@

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";

import "./ERC721M.sol";
import "./OperatorFilter/DefaultOperatorFilterer.sol";

contract ERC721MOperatorFilterer is ERC721M, DefaultOperatorFilterer {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rather than modifying ERC721MOperatorFilterer, recommend creating a new variant like ERC721MOperatorFiltererPausable which extends ERC721MOperatorFilterer

Also thoughts on using Pausable?

@ricorandom
Copy link
Author

ricorandom commented May 25, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants