To use:
git clone https://github.com/0xMacro/exam_processor.git
cd exam_processor
npm install
npx hardhat test
At this stage ExamResultProcessor
and ImprovedProcessor
should have similar gas consumption as they are identical.
Modify contracts/ImprovedProcessor.sol
to reduce its gas counsumption.
Keep ExamResultProcessor
unchanged as a reference.