Skip to content

Commit 7a9102b

Browse files
author
Connor Daly
authored
Merge pull request #18 from ava-labs/update-contract-name
Rename contract
2 parents d54ae34 + 2771518 commit 7a9102b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

contracts/ERC721.sol renamed to contracts/NFT.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pragma solidity >= 0.6.2;
66
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
77
import "@openzeppelin/contracts/utils/Counters.sol";
88

9-
contract GameItem is ERC721 {
9+
contract NFT is ERC721 {
1010
using Counters for Counters.Counter;
1111
Counters.Counter private _tokenIds;
1212

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"test": "npx hardhat test",
3434
"deploy": "npx hardhat run scripts/deploy.ts",
3535
"erc20": "npx hardhat run scripts/erc20.ts",
36-
"erc721": "npx hardhat run scripts/erc721.ts --network mainnet",
36+
"nft": "npx hardhat run scripts/nft.ts --network mainnet",
3737
"storage": "npx hardhat run scripts/storage.ts",
3838
"send-avax-wallet-signer": "npx hardhat run scripts/sendAvaxWalletSigner.ts",
3939
"send-avax-json-provider": "npx hardhat run scripts/sendAvaxJSONProvider.ts",

scripts/erc721.ts renamed to scripts/nft.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Contract } from "ethers"
22
import { ethers } from "hardhat"
3-
import { abi } from "../artifacts/contracts/ERC721.sol/NFT.json"
3+
import { abi } from "../artifacts/contracts/NFT.sol/NFT.json"
44

55
const coinAddr: string = "0xe304EDd5C4e590e2b8ce08b9625597FF38192D71"
66
const main = async (): Promise<any> => {

0 commit comments

Comments
 (0)