package main // SEND: 1000000ugnot import ( "testing" "gno.land/r/archive/boards" uinit "gno.land/r/sys/users/init" ) func main() { testing.SetRealm(testing.NewUserRealm(address("g1wymu47drhr0kuq2098m792lytgtj2nyx77yrsm"))) // so that CurrentRealm.Addr() matches OrigCaller uinit.RegisterUser(cross, "gnouser123", address("g1wymu47drhr0kuq2098m792lytgtj2nyx77yrsm")) bid1 := boards.CreateBoard(cross, "test_board1") pid := boards.CreateThread(cross, bid1, "First Post (title)", "Body of the first post. (body)") boards.CreateBoard(cross, "test_board2") // create a repost to a non-existing destination board rid := boards.CreateRepost(cross, bid1, pid, "", "Check this out", 5) println(rid) println(boards.Render("test_board1")) } // Error: // dst board not exist