mayank-0407 / Anti-Corrupto

This project leverages cutting-edge technologies like blockchain and machine learning to build trust and combat corruption in government systems. Secure Land Registry: Eliminates fraud with tamper-proof land ownership records. Automated Traffic & Challan System (using edge computing): Ensures transparency in traffic enforcement and reduces bribery.
MIT License
5 stars 5 forks source link

in SOLIDITY contracts #23

Closed kairveeehh closed 4 months ago

kairveeehh commented 4 months ago

in the landregistry.sol file there are certain minor/major safety issues that need to be fixed , would liek to fix them @mayank-0407

please assign under gssoc'24

mayank-0407 commented 4 months ago

What security Issues? Tell me those issues, and only then will I be able to assign the task.

kairveeehh commented 4 months ago

ok so i would like to -- implement all these , please assign a level3 issue under gssoc'24 @mayank-0407 Change transferAmount to uint256 for numerical value consistency. Convert _landIdentificationNumber to uint256 using keccak256 for a unique identifier. Ensure landId is unique before registering new land. Remove land from the previous owner's list before transferring to the new owner. Validatedland existence and current status before performing actions.