Skip to content

Commit

Permalink
rename soulboundIdentityContract to soulboundIdentity
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcabot committed Sep 1, 2022
1 parent 44e7d00 commit d67e1f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions contracts/SoulName.sol
Expand Up @@ -17,7 +17,7 @@ contract SoulName is NFT, ISoulNameResolver {
/* ========== STATE VARIABLES ========== */
using Strings for uint256;

SoulboundIdentity public soulboundIdentityContract;
SoulboundIdentity public soulboundIdentity;
string public extension; // suffix of the names (.sol?)

mapping(uint256 => string) tokenIdToName; // used to sort through all names (name in lowercase)
Expand Down Expand Up @@ -45,7 +45,7 @@ contract SoulName is NFT, ISoulNameResolver {
) NFT(owner, "Masa Identity Name", "MIN", baseTokenURI) {
require(address(_soulboundIdentity) != address(0), "ZERO_ADDRESS");

soulboundIdentityContract = _soulboundIdentity;
soulboundIdentity = _soulboundIdentity;
extension = _extension;
}

Expand Down Expand Up @@ -81,7 +81,7 @@ contract SoulName is NFT, ISoulNameResolver {
require(!nameExists(name), "NAME_ALREADY_EXISTS");
require(bytes(name).length > 0, "ZERO_LENGTH_NAME");
require(
soulboundIdentityContract.ownerOf(identityId) != address(0),
soulboundIdentity.ownerOf(identityId) != address(0),
"IDENTITY_NOT_FOUND"
);

Expand All @@ -108,7 +108,7 @@ contract SoulName is NFT, ISoulNameResolver {
"ERC721: caller is not token owner nor approved"
);
require(
soulboundIdentityContract.ownerOf(identityId) != address(0),
soulboundIdentity.ownerOf(identityId) != address(0),
"IDENTITY_NOT_FOUND"
);

Expand Down
4 changes: 2 additions & 2 deletions docs/SoulName.md
Expand Up @@ -502,10 +502,10 @@ Sets the extension of the soul name
|---|---|---|
| _extension | string | Extension of the soul name |

### soulboundIdentityContract
### soulboundIdentity

```solidity
function soulboundIdentityContract() external view returns (contract SoulboundIdentity)
function soulboundIdentity() external view returns (contract SoulboundIdentity)
```


Expand Down

0 comments on commit d67e1f6

Please sign in to comment.