This is a NFT contract with the Token URI being generated on-chain. Learnt the use of Chainlink VRF to produce random numbers to change token URI on-chain for the NFT.
Steps to test it:
- Deploy the contract and verify it (I have used Amoy Testnet)
- Call the mint function to mint the Warrior NFT
- Call the train function to generate random numbers for the Warrior attributes.
P.S. : You need to setup Chainlink's VRF for this contract
npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat ignition deploy ./ignition/modules/Lock.ts