Add reputation to post struct
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 36s Details

This commit is contained in:
Ladd Hoffman 2024-04-10 15:05:33 -05:00
parent a40bbc8059
commit 57b64f7977
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}
}