Skip to content

Commit

Permalink
return value instead of assigning value in isAvailable()
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcabot committed Sep 22, 2022
1 parent 31a72d6 commit a8b2e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/SoulName.sol
Expand Up @@ -209,7 +209,7 @@ contract SoulName is NFT, ISoulName {
string memory lowercaseName = _toLowerCase(name);
if (nameData[lowercaseName].exists) {
uint256 tokenId = nameData[lowercaseName].tokenId;
available = tokenData[tokenId].expirationDate > block.timestamp;
return tokenData[tokenId].expirationDate > block.timestamp;
} else {
return false;
}
Expand Down

0 comments on commit a8b2e6b

Please sign in to comment.