Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pragma solidity ^0.4.25;
- contract PlotFactory {
- uint plotDigits = 64;
- uint plotModulus = 10 ** plotDigits;
- event plotCreated(string name, uint price, string owner);
- struct Plot {
- string name;
- string postCode;
- string owner;
- string size;
- uint price;
- string description;
- }
- Plot[] public plots;
- function _createPlot(string _name, string _postcode, string _owner, string _size, uint _price, string _desc) private {
- plots.push(Plot(_name, _postcode, _owner, _size, _price, _desc));
- emit plotCreated(_name, _price, _owner);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement