Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
final-year-project-/Registration.sol
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
41 lines (32 sloc)
825 Bytes
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
pragma solidity ^0.8.12; | |
contract SimpleStorage { | |
string _fname; | |
string _email; | |
string _pass; | |
uint cnumber; | |
function set(string memory name, string memory email, string memory password, uint contact) public | |
{ | |
_fname = name; | |
_email = email; | |
_pass = password; | |
cnumber = contact; | |
} | |
function get() public view returns (string memory ,string memory,string memory,uint) | |
{ | |
return ( _fname, _email, _pass, cnumber); | |
} | |
} | |
contract Login | |
{ | |
string _email; | |
string _pass; | |
function set(string memory email, string memory password) public | |
{ | |
_email = email; | |
_pass = password; | |
} | |
function get() public view returns (string memory, string memory) | |
{ | |
return (_email, _pass); | |
} | |
} |