link : Click!
Feel free donate to my EVM address
EVM :
0x6f5c1bEB0Ae14D1422B4B3b874ac6D3d225f9940
git clone https://github.com/gadroen/swisstronik-erc721-gdr.git
cd swisstronik-erc721-gdr
npm install
create .env file in root project
PRIVATE_KEY="your private key"
- Open contracts folder
- Open Nft.sol file
- Feel free to modify token name and token symbol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
contract TestNFT is ERC721 {
uint256 private _currentTokenId = 0;
event NFTMinted(address recipient, uint256 tokenId);
constructor() ERC721("GadroenNFT", "GDRNFT") {}
function mintNFT(address recipient) public returns (uint256) {
_currentTokenId += 1;
uint256 newItemId = _currentTokenId;
_mint(recipient, newItemId);
emit NFTMinted(recipient, newItemId);
return newItemId;
}
function burnNFT(uint256 tokenId) public {
_burn(tokenId);
}
}
npm run compile
npm run deploy
npm run mint
- Open the deployed-adddress.ts (location in utils folder)
- Copy the address and paste the address into testnet dashboard
- Open the tx-hash.txt (location in utils folder)
- Copy the address and paste the tx hash link into testnet dashboard
- push this project to your github and paste your repository link in testnet dashboard
by : github : gadroen telegram : @EwinGadroen //0x6f5c1bEB0Ae14D1422B4B3b874ac6D3d225f9940