From 3c0d13a01a917213ea257dd31c29f01b15c10aec Mon Sep 17 00:00:00 2001 From: Gabriel Cardona Date: Mon, 19 Jul 2021 15:13:59 -0700 Subject: [PATCH 1/3] Rename contract --- contracts/ERC721.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/ERC721.sol b/contracts/ERC721.sol index 6a82c5f..a86f2a3 100644 --- a/contracts/ERC721.sol +++ b/contracts/ERC721.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; From 844d44264fc480fe29a9a4a021d8f595dd3035eb Mon Sep 17 00:00:00 2001 From: Gabriel Cardona Date: Mon, 19 Jul 2021 15:21:58 -0700 Subject: [PATCH 2/3] Rename ERC721 contract file. --- contracts/{ERC721.sol => NFT.sol} | 0 scripts/erc721.ts | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename contracts/{ERC721.sol => NFT.sol} (100%) diff --git a/contracts/ERC721.sol b/contracts/NFT.sol similarity index 100% rename from contracts/ERC721.sol rename to contracts/NFT.sol diff --git a/scripts/erc721.ts b/scripts/erc721.ts index f5f4c46..645fd8d 100644 --- a/scripts/erc721.ts +++ b/scripts/erc721.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 => { From 27715186241c2234c82d59b0e22d8b13c8c7189d Mon Sep 17 00:00:00 2001 From: Gabriel Cardona Date: Mon, 19 Jul 2021 15:23:29 -0700 Subject: [PATCH 3/3] Rename NFT ts script. --- package.json | 2 +- scripts/{erc721.ts => nft.ts} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename scripts/{erc721.ts => nft.ts} (100%) 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 100% rename from scripts/erc721.ts rename to scripts/nft.ts