Created
August 25, 2020 13:51
-
-
Save sai-sondarkar/46388797130d2301107126b0253a192b 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
pragma solidity 0.4.18 <= 0.6.12; | |
contract ElectricityBills{ | |
string Name; | |
string addrs; | |
int units; | |
int money; | |
string consumerId; | |
string month; | |
function ElectricityBills(string newName, string newAddrs, int newUnits, int newMoney, string newConsumerId, | |
string newMonth) public { | |
Name = newName; | |
addrs = newAddrs; | |
units = newUnits; | |
money = newMoney; | |
month = newMonth; | |
consumerId = newConsumerId; | |
} | |
function getElectricityBill() public view returns(string,string,int,int,string, string) { | |
return(Name, addrs, units, money, consumerId, month); | |
} | |
function setMonthElectricityBill(string newMonth, int newUnits, int newMoney) public{ | |
month = newMonth; | |
units = newUnits; | |
money = newMoney; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment