Blockchain, Solidity and front-end full-stack Web3 development lesson 5 20221124

1. Learn to install hardhat

2. Develop SimpleStorage under the hardhat framework

3. Set the blockchain network under Hardhat

4. Blockchain verification

5. Interact with the contract under Hardhat.console

6. Hardhat, test module learning

        Function: To ensure that the contract can run in accordance with the requirements.

        Test module: test contracts in batches and test contract functions

        Use beforeEach to initialize each test.

        Use assert and expect in chai to meet test requirements

        --grep store: automatically query the store, and test according to the test items with keywords

7. Know how much gas is used in each step of operation (using hardhat-gas-reporter)

        1. Install and configure hardhat-gas-reporter

        2. Use hardhat-gas-reporter

8. solidity-coverage: prevent contracts from being hacked

        1. Installation

        2. Call

        

Guess you like

Origin blog.csdn.net/H_Roger/article/details/128018497