diff --git a/contracts/ERC721.sol b/contracts/NFT.sol similarity index 95% rename from contracts/ERC721.sol rename to contracts/NFT.sol index 6a82c5f..a86f2a3 100644 --- a/contracts/ERC721.sol +++ b/contracts/NFT.sol @@ -6,7 +6,7 @@ pragma solidity >= 0.6.2; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; -contract GameItem is ERC721 { +contract NFT is ERC721 { using Counters for Counters.Counter; Counters.Counter private _tokenIds; diff --git a/package.json b/package.json index 2662693..40b3dea 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "test": "npx hardhat test", "deploy": "npx hardhat run scripts/deploy.ts", "erc20": "npx hardhat run scripts/erc20.ts", - "erc721": "npx hardhat run scripts/erc721.ts --network mainnet", + "nft": "npx hardhat run scripts/nft.ts --network mainnet", "storage": "npx hardhat run scripts/storage.ts", "send-avax-wallet-signer": "npx hardhat run scripts/sendAvaxWalletSigner.ts", "send-avax-json-provider": "npx hardhat run scripts/sendAvaxJSONProvider.ts", diff --git a/scripts/erc721.ts b/scripts/nft.ts similarity index 87% rename from scripts/erc721.ts rename to scripts/nft.ts index f5f4c46..645fd8d 100644 --- a/scripts/erc721.ts +++ b/scripts/nft.ts @@ -1,6 +1,6 @@ import { Contract } from "ethers" import { ethers } from "hardhat" -import { abi } from "../artifacts/contracts/ERC721.sol/NFT.json" +import { abi } from "../artifacts/contracts/NFT.sol/NFT.json" const coinAddr: string = "0xe304EDd5C4e590e2b8ce08b9625597FF38192D71" const main = async (): Promise => {