Aniket-Engg / solidity-school

First place for early developers to learn Solidity
366 stars 82 forks source link

AttendenceRegisterExtended contract added (issue #38) #40

Closed RijuChakraborty closed 2 years ago

RijuChakraborty commented 2 years ago

fixes #38

New file added-

AttendenceRegisterExtended contract added which is inheriting from AttendenceRegister and includes a function which takes roll number as input and returns the details of the corresponding student.

Enhancements-

Removed "rollNumber = 0" from constructor in AttendenceRegister contract as solidity initialize uint variables with 0 by default. This change also helped in reducing gas costs by ~3k units.

@Aniket-Engg please have a look.

Aniket-Engg commented 2 years ago

Thanks @RijuChakraborty !!!

RijuChakraborty commented 2 years ago

Thanks @RijuChakraborty !!!

Welcome :)