This repository covers the modified code following Alchemy's Road to Web3 Week 3.
Ensure you have npm installed. Create a .env
file under the /ChainBattles
directory which includes the following keys:
TESTNET_RPC=
PRIVATE_KEY=
POLYGONSCAN_API_KEY=
/ChainBattles
The hardhat contract repo including test and deployment scripts.
Ensure you're under the /ChainBattles
directory.
npm i
To run the general test suit execute the following:
npx hardhat test
npx hardhat run scripts/deploy.js
This NFT is a living blockchain NFT which generates an image based on changing data. To update the visual data invoke the:
train( tokenId )