From e87e611bbc709d091eceaf425bbb37c5d981cc96 Mon Sep 17 00:00:00 2001 From: Jeff Thompson Date: Mon, 9 Dec 2024 09:27:03 +0100 Subject: [PATCH] fix: In gno code, change txlink.URL to txlink.Call. See the PR Signed-off-by: Jeff Thompson --- realm/post.gno | 6 +++--- realm/userposts.gno | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/realm/post.gno b/realm/post.gno index 9cdb270..69139bd 100644 --- a/realm/post.gno +++ b/realm/post.gno @@ -183,7 +183,7 @@ func (post *Post) GetURL() string { } func (post *Post) GetGnodFormURL() string { - return txlink.URL("AddReaction", + return txlink.Call("AddReaction", "userPostsAddr", post.userPosts.userAddr.String(), "threadid", post.threadID.String(), "postid", post.id.String(), @@ -191,14 +191,14 @@ func (post *Post) GetGnodFormURL() string { } func (post *Post) GetReplyFormURL() string { - return txlink.URL("PostReply", + return txlink.Call("PostReply", "userPostsAddr", post.userPosts.userAddr.String(), "threadid", post.threadID.String(), "postid", post.id.String()) } func (post *Post) GetRepostFormURL() string { - return txlink.URL("RepostThread", + return txlink.Call("RepostThread", "userPostsAddr", post.userPosts.userAddr.String(), "threadid", post.threadID.String(), "postid", post.id.String()) diff --git a/realm/userposts.gno b/realm/userposts.gno index 048fd5f..e16d641 100644 --- a/realm/userposts.gno +++ b/realm/userposts.gno @@ -209,19 +209,19 @@ func (userPosts *UserPosts) GetURLFromThreadAndReplyID(threadID, replyID PostID) } func (userPosts *UserPosts) GetPostFormURL() string { - return txlink.URL("PostMessage") + return txlink.Call("PostMessage") } func (userPosts *UserPosts) GetFollowFormURL() string { - return txlink.URL("Follow", "followedAddr", userPosts.userAddr.String()) + return txlink.Call("Follow", "followedAddr", userPosts.userAddr.String()) } func (userPosts *UserPosts) GetUnfollowFormURL(followedAddr std.Address) string { - return txlink.URL("Unfollow", "followedAddr", followedAddr.String()) + return txlink.Call("Unfollow", "followedAddr", followedAddr.String()) } func (userPosts *UserPosts) GetRefreshFormURL() string { - return txlink.URL("RefreshHomePosts", "userPostsAddr", userPosts.userAddr.String()) + return txlink.Call("RefreshHomePosts", "userPostsAddr", userPosts.userAddr.String()) } // Scan userPosts.following for all posts from all followed users starting from lastRefreshId+1 .