From 57b64f7977718fc17a7b67c9768cf29655692124 Mon Sep 17 00:00:00 2001 From: Ladd Hoffman Date: Wed, 10 Apr 2024 15:05:33 -0500 Subject: [PATCH] Add reputation to post struct --- ethereum/contracts/core/Forum.sol | 2 ++ 1 file changed, 2 insertions(+) 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); } }