Third Week Challenge Completed. This Project is made with Hardhat, Alchemy.
- Substitute the current tokenIdToLevels[] mapping with a struct that stores: Level, Speed, Strength, Life.
clone the repo
git clone https://github.com/Aakrut/ChainBattles
set up the .env file in root directory
TESTNET_RPC="YOUR_POLYGON_HTTP_URL"
POLYGONSCAN_API_KEY="YOUR_API_KEY"
PRIVATE_KEY="YOUR_METAMASK_SECRET_KEY"
⚠️ WARNING : Before Uploading the project to github, make sure you don't have any real money in your account, so create a test account.
Try running some of the following tasks:
npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
node scripts/sample-script.js
npx hardhat help