Skip to content

Commit

Permalink
feat: only grant KetlCred for upvotes
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonplau authored and Wilson Lau committed Jul 10, 2023
1 parent 8e1d336 commit 97a2d00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contracts/OBSSStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ contract OBSSStorage is OwnableUpgradeable, ERC2771Recipient {
if (
!ketlCredGranted[reactionRequest.feedId][reactionRequest.postId][
reactionRequest.commentId
][_msgSender()] && post.author != _msgSender()
][_msgSender()] &&
post.author != _msgSender() &&
reactionRequest.reactionType == 1
) {
ketlCredGranted[reactionRequest.feedId][reactionRequest.postId][
reactionRequest.commentId
Expand Down

0 comments on commit 97a2d00

Please sign in to comment.