From 5900488532a3388d723ed915e354424e96e82952 Mon Sep 17 00:00:00 2001 From: zoruka Date: Mon, 12 Dec 2022 14:36:18 -0300 Subject: [PATCH] chore: add clear token function comment --- contracts/FleekAccessControl.sol | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/contracts/FleekAccessControl.sol b/contracts/FleekAccessControl.sol index 49e711f..8858a61 100644 --- a/contracts/FleekAccessControl.sol +++ b/contracts/FleekAccessControl.sol @@ -160,10 +160,18 @@ abstract contract FleekAccessControl { } } + /** + * @dev Clears all token roles and not garants an owner role. + * Should be used when burns the token. + */ function _clearAllTokenRoles(uint256 tokenId) internal { _tokenRolesVersion[tokenId].increment(); } + /** + * @dev Clears all token roles and garants an owner role. + * Should be used when transfers the token. + */ function _clearAllTokenRoles(uint256 tokenId, address newOwner) internal { _clearAllTokenRoles(tokenId); _grantTokenRole(tokenId, Roles.Owner, newOwner);