Skip to content

Commit

Permalink
remove payable from SoulboundIdentity.mintIdentityWithName()
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcabot committed Dec 13, 2022
1 parent 2700316 commit 16b050f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
9 changes: 1 addition & 8 deletions contracts/SoulboundIdentity.sol
Expand Up @@ -67,14 +67,7 @@ contract SoulboundIdentity is
string memory name,
uint256 yearsPeriod,
string memory _tokenURI
)
public
payable
override
soulNameAlreadySet
nonReentrant
returns (uint256)
{
) public override soulNameAlreadySet nonReentrant returns (uint256) {
uint256 identityId = mint(to);
soulName.mint(to, name, yearsPeriod, _tokenURI);

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ISoulboundIdentity.sol
Expand Up @@ -13,7 +13,7 @@ interface ISoulboundIdentity is ISBT {
string memory name,
uint256 yearsPeriod,
string memory _tokenURI
) external payable returns (uint256);
) external returns (uint256);

function getSoulName() external view returns (ISoulName);

Expand Down
2 changes: 1 addition & 1 deletion docs/SoulboundIdentity.md
Expand Up @@ -296,7 +296,7 @@ Mints a new soulbound identity
### mintIdentityWithName

```solidity
function mintIdentityWithName(address to, string name, uint256 yearsPeriod, string _tokenURI) external payable returns (uint256)
function mintIdentityWithName(address to, string name, uint256 yearsPeriod, string _tokenURI) external nonpayable returns (uint256)
```

Mints a new soulbound identity with a SoulName associated to it
Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/ISoulboundIdentity.md
Expand Up @@ -74,7 +74,7 @@ function mint(address to) external nonpayable returns (uint256)
### mintIdentityWithName

```solidity
function mintIdentityWithName(address to, string name, uint256 yearsPeriod, string _tokenURI) external payable returns (uint256)
function mintIdentityWithName(address to, string name, uint256 yearsPeriod, string _tokenURI) external nonpayable returns (uint256)
```


Expand Down

0 comments on commit 16b050f

Please sign in to comment.