From 3836f9ba5cdd5eca49438604ab88c572e600e89c Mon Sep 17 00:00:00 2001 From: Nikita Kolmogorov Date: Mon, 5 Jun 2023 09:25:44 -0700 Subject: [PATCH] fix building --- contracts/superclasses/Posts.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/superclasses/Posts.sol b/contracts/superclasses/Posts.sol index 7b828ce..890c867 100644 --- a/contracts/superclasses/Posts.sol +++ b/contracts/superclasses/Posts.sol @@ -241,11 +241,11 @@ contract Posts is KetlGuarded { uint postId = commentRequest.postId; uint replyTo = commentRequest.replyTo; // Check if parent post exists - require(posts[feedId][postId].sender != address(0), "Post not found"); + require(posts[feedId][postId].author != address(0), "Post not found"); // Fetch parent comment and check if it exists if (replyTo > 0) { require( - comments[feedId][postId][replyTo - 1].sender != address(0), + comments[feedId][postId][replyTo - 1].author != address(0), "Comment not found" ); }