Skip to content

Commit

Permalink
Rewrite reverte messages in SoulName
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcabot committed Sep 1, 2022
1 parent 3a6042b commit e557755
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/SoulName.sol
Expand Up @@ -103,9 +103,10 @@ contract SoulName is NFT, ISoulNameResolver {
/// @param tokenId TokenId of the soul name
/// @param identityId New TokenId of the soulbound identity that will be pointed from this soul name
function updateIdentityId(uint256 tokenId, uint256 identityId) public {
// ERC721: caller is not token owner nor approved
require(
_isApprovedOrOwner(_msgSender(), tokenId),
"ERC721: caller is not token owner nor approved"
"ERC721_CALLER_NOT_OWNER"
);
require(
soulboundIdentityContract.ownerOf(identityId) != address(0),
Expand Down

0 comments on commit e557755

Please sign in to comment.