Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zaryab2000/6761457c791c58bb29a42c059039a078 to your computer and use it in GitHub Desktop.
Save zaryab2000/6761457c791c58bb29a42c059039a078 to your computer and use it in GitHub Desktop.
// 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