This file contains hidden or 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.0; | |
contract Forum { | |
uint16 constant maxValue = 10000;//when currentValue>maxValue let currentValue=currentValue%maxValue | |
uint16 currentValue;//increase by 1 in every Publish/Comment, and set item.valueSend with it as locater in current block | |
struct User { | |
address addr; | |
uint weight; //used to exercise his rights | |
string name; |