remove setApprovedForAll in addApprovalWhitelist
This commit is contained in:
parent
a98b70b133
commit
949dd89a8e
@ -40,13 +40,12 @@ abstract contract BEBase is ERC721, AccessControlEnumerable, ERC721Enumerable, O
|
||||
// can be burned (destroyed), so we need a separate counter.
|
||||
_mint(to, tokenId);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @dev Allow operation to approval list.
|
||||
*/
|
||||
function addApprovalWhitelist(address proxy) external onlyOwner {
|
||||
require(!approvalWhitelists[proxy], "Invalid proxy address");
|
||||
setApprovalForAll(proxy, true);
|
||||
approvalWhitelists[proxy] = true;
|
||||
}
|
||||
|
||||
@ -54,7 +53,6 @@ abstract contract BEBase is ERC721, AccessControlEnumerable, ERC721Enumerable, O
|
||||
* @dev Remove operation from approval list.
|
||||
*/
|
||||
function removeApprovalWhitelist(address proxy) external onlyOwner {
|
||||
setApprovalForAll(proxy, false);
|
||||
approvalWhitelists[proxy] = false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user