Skip to content

Commit

Permalink
✨ show nft data
Browse files Browse the repository at this point in the history
  • Loading branch information
Web3HackerWorld committed Dec 10, 2023
1 parent 72556b4 commit 9c939b1
Show file tree
Hide file tree
Showing 3 changed files with 660 additions and 17 deletions.
5 changes: 0 additions & 5 deletions contracts/MockNFT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ contract MockNFT is ERC721, ERC721URIStorage, Ownable {
Ownable(initialOwner)
{}

function _baseURI() internal pure override returns (string memory) {
return "ipfs://bafybeifkbaxlcwp4pyfrqcx7blvebzwvenb5ef63o7jbfl4qj5cuna5wtm/";
}

function safeMint(address to, uint256 tokenId, string memory uri)
public
onlyOwner
Expand All @@ -24,7 +20,6 @@ contract MockNFT is ERC721, ERC721URIStorage, Ownable {
}

// The following functions are overrides required by Solidity.

function tokenURI(uint256 tokenId)
public
view
Expand Down
Loading

0 comments on commit 9c939b1

Please sign in to comment.