Created
June 14, 2020 07:54
-
-
Save zaryab2000/6761457c791c58bb29a42c059039a078 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add a New DOCTOR | |
function setDoctor(address _docAddress,string memory _name, string memory _spec) public onlyOwner{ | |
require(!doctorList[_docAddress]); | |
doctorList[_docAddress] = true; | |
doctorDetailList[_docAddress].docAdress = _docAddress; | |
doctorDetailList[_docAddress].docName = _name; | |
doctorDetailList[_docAddress].docSpecialization = _spec; | |
doctorCount++; | |
docAddressList[doctorCount] = _docAddress; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment