-
Notifications
You must be signed in to change notification settings - Fork 41
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
base: main
Are you sure you want to change the base?
Pause #87
Conversation
if ( | ||
_tradable != true | ||
) { | ||
revert("Transfers are currently disabled"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefer to revert an error: https://github.com/magicoss/erc721m/blob/main/contracts/IERC721M.sol#L7-L27
@@ -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 { |
There was a problem hiding this comment.
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?
Hi Mi Yu,
Pausable <https://docs.openzeppelin.com/contracts/4.x/api/security#Pausable>
works, i'd be happy to use that instead, do you want me to make that
amendment?
…On Wed, May 24, 2023 at 8:06 PM Michael Yu ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In contracts/ERC721MOperatorFilterer.sol
<#87 (comment)>:
> @@ -2,10 +2,14 @@
pragma solidity ^0.8.4;
+import ***@***.***/contracts/access/Ownable.sol";
+
import "./ERC721M.sol";
import "./OperatorFilter/DefaultOperatorFilterer.sol";
contract ERC721MOperatorFilterer is ERC721M, DefaultOperatorFilterer {
rather than modifying ERC721MOperatorFilterer, recommend creating a new
variant like ERC721MOperatorFiltererPausable which extends
ERC721MOperatorFilterer
Also thoughts on using Pausable
<https://docs.openzeppelin.com/contracts/4.x/api/security#Pausable>?
—
Reply to this email directly, view it on GitHub
<#87 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5E5MOEJSYVPAXFWXJ7QYY3XHZL4NANCNFSM6AAAAAAYNRLECM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Added the pause feature and the import for the ownable contract.