Skip to content

Commit f52694e

Browse files
authored
fix: In gno code, change txlink.URL to txlink.Call. See the PR (#144)
Signed-off-by: Jeff Thompson <[email protected]>
1 parent cbbe19f commit f52694e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

realm/post.gno

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,22 +183,22 @@ func (post *Post) GetURL() string {
183183
}
184184

185185
func (post *Post) GetGnodFormURL() string {
186-
return txlink.URL("AddReaction",
186+
return txlink.Call("AddReaction",
187187
"userPostsAddr", post.userPosts.userAddr.String(),
188188
"threadid", post.threadID.String(),
189189
"postid", post.id.String(),
190190
"reaction", strconv.Itoa(int(Gnod)))
191191
}
192192

193193
func (post *Post) GetReplyFormURL() string {
194-
return txlink.URL("PostReply",
194+
return txlink.Call("PostReply",
195195
"userPostsAddr", post.userPosts.userAddr.String(),
196196
"threadid", post.threadID.String(),
197197
"postid", post.id.String())
198198
}
199199

200200
func (post *Post) GetRepostFormURL() string {
201-
return txlink.URL("RepostThread",
201+
return txlink.Call("RepostThread",
202202
"userPostsAddr", post.userPosts.userAddr.String(),
203203
"threadid", post.threadID.String(),
204204
"postid", post.id.String())

realm/userposts.gno

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,19 +209,19 @@ func (userPosts *UserPosts) GetURLFromThreadAndReplyID(threadID, replyID PostID)
209209
}
210210

211211
func (userPosts *UserPosts) GetPostFormURL() string {
212-
return txlink.URL("PostMessage")
212+
return txlink.Call("PostMessage")
213213
}
214214

215215
func (userPosts *UserPosts) GetFollowFormURL() string {
216-
return txlink.URL("Follow", "followedAddr", userPosts.userAddr.String())
216+
return txlink.Call("Follow", "followedAddr", userPosts.userAddr.String())
217217
}
218218

219219
func (userPosts *UserPosts) GetUnfollowFormURL(followedAddr std.Address) string {
220-
return txlink.URL("Unfollow", "followedAddr", followedAddr.String())
220+
return txlink.Call("Unfollow", "followedAddr", followedAddr.String())
221221
}
222222

223223
func (userPosts *UserPosts) GetRefreshFormURL() string {
224-
return txlink.URL("RefreshHomePosts", "userPostsAddr", userPosts.userAddr.String())
224+
return txlink.Call("RefreshHomePosts", "userPostsAddr", userPosts.userAddr.String())
225225
}
226226

227227
// Scan userPosts.following for all posts from all followed users starting from lastRefreshId+1 .

0 commit comments

Comments
 (0)