Posts

Showing posts with the label #landContract

Blockchain Business Example "Smart Property Contract"

This contract is for tangible and intangible property such as Cars, Houses or Patents. Can be used to record and verify property rights. First,  payable  is a modifier that can be added to a function. It's impossible to have  payable()  as a function name as it is a reserved keyword. You may use  payable  only in addition to existing functions  Second,  Payable  allows a function to receive ether while being called as stated in  docs .It's manadatory from solidity 0.4.x. If you try to send ether using  call pragma solidity ^0.4.18; contract LandAresh { address public owner; uint public defaultCost; uint public mainLandCost; mapping(uint => mapping(uint => address))public properties; mapping(uint => mapping(uint => address))public landContent; mapping(uint => mapping(uint => bool))public status; mapping(uint => mapping(uint => uint))public prices; funct...