Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove deprecated std.AssertOriginCall() #78

Merged
merged 1 commit into from
May 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions realm/public.gno
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ type UserAndPostID struct {
// Return the "thread ID" of the new post.
// (This is similar to boards.CreateThread, but no message title)
func PostMessage(body string) PostID {
std.AssertOriginCall()
caller := std.GetOrigCaller()
name := usernameOf(caller)
if name == "" {
Expand All @@ -38,7 +37,6 @@ func PostMessage(body string) PostID {
// Return the new post ID.
// (This is similar to boards.CreateReply.)
func PostReply(userPostsAddr std.Address, threadid, postid PostID, body string) PostID {
std.AssertOriginCall()
caller := std.GetOrigCaller()
if usernameOf(caller) == "" {
panic("please register")
Expand Down Expand Up @@ -69,7 +67,6 @@ func PostReply(userPostsAddr std.Address, threadid, postid PostID, body string)
// Return the new post ID.
// (This is similar to boards.CreateRepost.)
func RepostThread(userPostsAddr std.Address, threadid PostID, comment string) PostID {
std.AssertOriginCall()
caller := std.GetOrigCaller()
if userPostsAddr == caller {
panic("Cannot repost a user's own message")
Expand Down Expand Up @@ -227,7 +224,6 @@ func GetJsonHomePosts(userPostsAddr std.Address, startIndex int, endIndex int) s

// Update the caller to follow the user with followedAddr. See UserPosts.Follow.
func Follow(followedAddr std.Address) PostID {
std.AssertOriginCall()
caller := std.GetOrigCaller()
name := usernameOf(caller)
if name == "" {
Expand All @@ -245,7 +241,6 @@ func Follow(followedAddr std.Address) PostID {

// Update the caller to unfollow the user with followedAddr. See UserPosts.Unfollow.
func Unfollow(followedAddr std.Address) {
std.AssertOriginCall()
caller := std.GetOrigCaller()
name := usernameOf(caller)
if name == "" {
Expand Down