I am constantly getting below error while deploying my smart contract for personal identity security.
Once I click to deploy it on remix after compilation, a pop up comes depicting gas storage is infinite.
Please let me know the reason and solutions to this. It's urgent!!!!!
My contract is attached below :
pragma solidity ^0.4.0;
contract identity
{
bytes32 public username;
bytes32 public loc;
address password;
address _pass;
uint public age;
uint public phone;
uint public acnum;
uint public adhar;
address owner;
function identity()
{
owner = msg.sender;
}
modifier onlyOwner
{
require(msg.sender == owner);
_;
}
event Instructor
(
bytes32 username,
address password,
bytes32 loc,
uint age,
uint phone,
uint acnum,
uint adhar
);
function Registration(bytes32 _username, address _password, bytes32 _loc, uint _age, uint _phone, uint _acnum, uint _adhar) onlyOwner public
{
username = _username;
password = _password;
loc = _loc;
age = _age;
phone = _phone;
acnum = _acnum;
adhar = _adhar;
Instructor(_username, _password, _loc, _age, _phone, _acnum, _adhar);
}
function getInstructor() public constant returns(bytes32, address, bytes32, uint, uint, uint, uint)
{
return(username, password, loc, age, phone, acnum, adhar);
}
modifier onlyLogin
{
require(password == _pass);
_;
}
function login(bytes32 _username, address _pass) onlyLogin public
{
username = _username;
password = _pass;
}
function getLogin() public constant returns(bytes32, address)
{
return(username,password);
}
}