-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLandReport.sol
More file actions
31 lines (22 loc) · 771 Bytes
/
Copy pathLandReport.sol
File metadata and controls
31 lines (22 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
pragma solidity ^0.4.17 < 0.6.12;
contract LandRecord{
string public owner;
uint public value ;
string public location;
string public area;
string public legalId;
function LandRecord(string newOwner, uint newValue, string newLocation, string newArea, string newLegalId) public{
owner = newOwner;
value = newValue;
location = newLocation;
area = newArea;
legalId = newLegalId;
}
function setLandNewDetails(string newOwner, uint newValue) public{
owner = newOwner;
value = newValue;
}
function getLandCurrentDetails() public view returns(string,uint,string,string,string){
return(owner, value, location, area, legalId);
}
}