Author: Snow.li
yarn install
yarn serve
This will generate artifacts abi needed for your web app
npx hardhat compile
-
Start a Hardhat Node
npx hardhat node --fork https://evm-cronos.crypto.org
-
Open a new terminal execute the following script
2.1 deploy smart contract: npx hardhat run --network localhost scripts/deploy.js 2.2 Test address recharge npx hardhat run --network localhost test/mock/transfer2.js