Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cetceeve committed Dec 17, 2023
1 parent bb4c93d commit 6dd2668
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/src/lib/Home.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</div>

{#if activeAcc}
<h4>You created these items:</h4>
<h4>You created these item passports:</h4>
{#await contract.methods.getCreatedItemTokens(activeAcc).call() then tokenList}
{#each tokenList as tokenId}
<PassportLoader {contract} {tokenId} let:data>
Expand Down
10 changes: 5 additions & 5 deletions contract/src/ItemBlocks.sol
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ contract ItemBlocks is ERC721, Ownable {
* on items information.
*
* @return true if the userAddress and the owner address of the item are same.
* Meaning the user is the owner of the item.
* @return true if the userAddress is the first owner of the item.
* Meaning the user is the creator of the item.
* @return false if the the user with the userAddress is neither the owner or
* the creator of the item.
* Meaning the user is the owner of the item.
* true if the userAddress is the first owner of the item.
* Meaning the user is the creator of the item.
* false if the the user with the userAddress is neither the owner or
* the creator of the item.
*/
function isEligible(uint256 tokenId, address userAddress) public view returns(bool){
return (userAddress == ownerOf(tokenId) || userAddress == allItemOwners[tokenId][0]);
Expand Down

0 comments on commit 6dd2668

Please sign in to comment.