To use:
git clone https://github.com/Hacker-DAO/calling-variations.git- Read the two contracts in
calling-variations/contracts. They illustrate three different ways theCallingcontract can call the two functions on theCalledcontract. - Decide what the value of the storage variable
uint datawill be on theCallingcontract after calling each of its six functionscastThenCallOk,abiEncodeThenCallOk, etc.. - Write down your answers.
- Look at
calling-variations/test/calling.jsfor the correct answers. - Run the tests to verify this:
cd calling-variationsnpm installnpx hardhat test