- Your task is to edit and optimise the Gas.sol contract.
- You cannot edit the tests &
- All the tests must pass.
- You can change the functionality of the contract as long as the tests pass.
- Try to get the gas usage as low as possible.
Run: forge test --gas-report -vvvv
Run: forge test --gas-report
RUN:forge test --match-test {TESTNAME} -vvvv
EG: forge test --match-test test_onlyOwner -vvvv