diff --git a/ethereum/contracts/core/Forum.sol b/ethereum/contracts/core/Forum.sol index 0396c86..65b5183 100644 --- a/ethereum/contracts/core/Forum.sol +++ b/ethereum/contracts/core/Forum.sol @@ -8,6 +8,7 @@ struct Post { address sender; address author; string contentId; + uint reputation; // TODO: citations } @@ -32,6 +33,7 @@ contract Forum is Reputation { function _onValidatePost(uint postIndex, uint amount) internal { Post storage post = posts[postIndex]; + post.reputation = amount; _update(address(this), post.author, amount); } }