diff --git a/examples/gno.land/r/demo/boards2/board.gno b/examples/gno.land/r/demo/boards2/board.gno index ee1b548aa0f..088500cb4a5 100644 --- a/examples/gno.land/r/demo/boards2/board.gno +++ b/examples/gno.land/r/demo/boards2/board.gno @@ -114,5 +114,5 @@ func (board *Board) GetURLFromReplyID(threadID, replyID PostID) string { } func (board *Board) GetPostFormURL() string { - return txlink.URL("CreateThread", "bid", board.id.String()) + return txlink.Call("CreateThread", "bid", board.id.String()) } diff --git a/examples/gno.land/r/demo/boards2/board_test.gno b/examples/gno.land/r/demo/boards2/board_test.gno index 88996928fc3..2f06b93eefa 100644 --- a/examples/gno.land/r/demo/boards2/board_test.gno +++ b/examples/gno.land/r/demo/boards2/board_test.gno @@ -100,7 +100,7 @@ func TestBoard_GetURLFromReplyID(t *testing.T) { func TestBoard_GetPostFormURL(t *testing.T) { bid := BoardID(386) b := newBoard(bid, "foo1234", "") - expect := txlink.URL("CreateThread", "bid", bid.String()) + expect := txlink.Call("CreateThread", "bid", bid.String()) got := b.GetPostFormURL() uassert.Equal(t, expect, got) } diff --git a/examples/gno.land/r/demo/boards2/post.gno b/examples/gno.land/r/demo/boards2/post.gno index 655e7259512..7364b985c84 100644 --- a/examples/gno.land/r/demo/boards2/post.gno +++ b/examples/gno.land/r/demo/boards2/post.gno @@ -180,7 +180,7 @@ func (post *Post) GetURL() string { } func (post *Post) GetReplyFormURL() string { - return txlink.URL("CreateReply", + return txlink.Call("CreateReply", "bid", post.board.id.String(), "threadID", post.threadID.String(), "postID", post.id.String(), @@ -188,7 +188,7 @@ func (post *Post) GetReplyFormURL() string { } func (post *Post) GetRepostFormURL() string { - return txlink.URL("CreateRepost", + return txlink.Call("CreateRepost", "bid", post.board.id.String(), "postID", post.id.String(), ) @@ -196,12 +196,12 @@ func (post *Post) GetRepostFormURL() string { func (post *Post) GetDeleteFormURL() string { if post.IsThread() { - return txlink.URL("DeleteThread", + return txlink.Call("DeleteThread", "bid", post.board.id.String(), "threadID", post.threadID.String(), ) } - return txlink.URL("DeleteReply", + return txlink.Call("DeleteReply", "bid", post.board.id.String(), "threadID", post.threadID.String(), "replyID", post.id.String(),