Skip to content

Latest commit

 

History

History
40 lines (35 loc) · 1.11 KB

README.md

File metadata and controls

40 lines (35 loc) · 1.11 KB

AUTOMATED UNIT TEST CASE OF VARIOUS SMART CONTRACTS ON ZKEVM

This repository contains all the necessary unit test scripts using Mocha for zkEVM smart contracts.

GETTING STARTED

  • Clone this repository
git clone https://github.com/integrations-Polygon/zkEVM_automated_testing.git
  • Navigate to zkEVM_automated_testing folder
cd zkEVM_automated_testing
  • Install dependencies
yarn
  • Create .env file
cp .example.env .env
  • Configure environment variables in .env
PRIVATE_KEY = your_private_key
ZKEVM_RPC_URL = your_zkevm_rpc_url
MNEMONICS = provided_mnemonics
  • Compile the smart contract and its types
npx hardhat compile

USAGE

Start the unit testing script by running this command

npm run test

While the testing is in process it will display all the balances of the 5 testing wallet addresses provided by the given mnemonics each time a smart contract is deployed, if any of the wallet addresses has 0 ETH then the testing will be terminated and either you can fund the addresses with some test ETH or you can contact us to fund for you.