A code sample to create and deploy NFTs to the Cronos chain
To install dependencies:
npm installTo compile:
Standard commands:
npx hardhat compileTo deploy locally:
npx hardhat run --network ganache scripts/deploy-NFT-dev.script.tsAs this tutorial is for informational purposes, there are no automated tests. We will do our best to include tests in a future version. Meanwhile, always develop tests with 100% coverage if you are going to deploy your smart contracts to production!
See ./scripts/deploy-NFT-full.ts to comment and uncomment the relevant network configuration lines for your network, then run:
npx ts-node ./scripts/deploy-NFT-full.tsThis will run an end-to-end deployment script including uploading of NFT images and metadata to IPFS. Please pay attention to the prompts in the Terminal. You need to press Enter after each step to make sure that each step completes correctly before triggering the next step.