Add reputation to post struct
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 36s
Details
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 36s
Details
This commit is contained in:
parent
a40bbc8059
commit
57b64f7977
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue