Metacrafter Polygon advanced Module 1
- First fork and clone my repo.
- Do npm i
- Add your environment variables in .env file.
- Run npx hardhat compile
- npx hardhat run scripts/deploy.js ---network goerli will deploy your ERC721A contract to goerli testnet.
- The deployed contract address will get written in contractAddress.js
- npx hardhat run scripts/mintAll.js --network goerli to mint all the nft
- npx hardhat run scripts/approveAndDeposit.js --network goerli to approve and deposit transaction on polygon via fxportal bridge
- Wait for 22 to 30 min for this to approve and deposit on polygon.
- npx hardhat run scripts/promptDescription.js --network goerli to get the prompt description and other information about the NFT.
- npx hardhat run scripts/balanceOf.js --network mumbai to get the balance of deployed tokens.
- Done
- ERC721A
- solidity
- hardhat
- pinata