Skip to content

Commit

Permalink
change modifiers of SoulName.renewYearsPeriod()
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcabot committed Dec 13, 2022
1 parent 0dca1ad commit 8273736
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions contracts/SoulName.sol
Expand Up @@ -149,10 +149,7 @@ contract SoulName is MasaNFT, ISoulName, ReentrancyGuard {
/// @dev The caller must be the owner or an approved address of the soul name.
/// @param tokenId TokenId of the soul name
/// @param yearsPeriod Years of validity of the name
function renewYearsPeriod(uint256 tokenId, uint256 yearsPeriod)
public
nonReentrant
{
function renewYearsPeriod(uint256 tokenId, uint256 yearsPeriod) external {
// ERC721: caller is not token owner nor approved
require(
_isApprovedOrOwner(_msgSender(), tokenId),
Expand Down

0 comments on commit 8273736

Please sign in to comment.