Skip to content

Commit

Permalink
verified on etherscan
Browse files Browse the repository at this point in the history
  • Loading branch information
maxslimb committed Jun 18, 2022
1 parent 9db8710 commit a282670
Show file tree
Hide file tree
Showing 4 changed files with 288 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contracts/MyEpicNFT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ function pickRandomFirstWord(uint256 tokenId) public view returns (string memory
return uint256(keccak256(abi.encodePacked(input)));
}

function getTotalNFTsMintedSoFar() public view returns (uint256) {
return _tokenIds.current();
}

// A function our user will hit to get their NFT.
function makeAnEpicNFT() public {
Expand Down
6 changes: 6 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require("@nomiclabs/hardhat-waffle");
require("dotenv").config({ path: ".env" });
require("@nomiclabs/hardhat-etherscan");
// This is a sample Hardhat task. To learn how to create your own go to
// https://hardhat.org/guides/create-task.html
task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
Expand All @@ -24,4 +25,9 @@ module.exports = {
accounts: [process.env.RINKEBY_PRIVATE_KEY],
},
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: "NT2HBS45S3GNUTJ2MSWA9JENJ4SSIZRPRX",
}
};
Loading

0 comments on commit a282670

Please sign in to comment.