Skip to content

Commit

Permalink
make fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
leohhhn committed Jan 16, 2025
1 parent 56eaa3a commit 4e58502
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/gno.land/r/demo/boards/public.gno
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func CreateBoard(name string) BoardID {
if !(std.IsOriginCall() || std.PrevRealm().IsUser()) {
panic("invalid non-user call")
}

bid := incGetBoardID()
caller := std.GetOrigCaller()
if usernameOf(caller) == "" {
Expand Down
2 changes: 1 addition & 1 deletion examples/gno.land/r/demo/boards/z_0_c_filetest.gno
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var bid boards.BoardID
func init() {
std.TestSetRealm(std.NewUserRealm(std.Address("g1wymu47drhr0kuq2098m792lytgtj2nyx77yrsm"))) // so that CurrentRealm.Addr() matches OrigCaller
std.TestSetRealm(std.NewUserRealm(std.Address("g1wymu47drhr0kuq2098m792lytgtj2nyx77yrsm"))) // so that CurrentRealm.Addr() matches OrigCaller
users.Register("gnouser123")
users.Register("gnouser123")
boards.CreateThread(1, "First Post (title)", "Body of the first post. (body)")
}

Expand Down
2 changes: 1 addition & 1 deletion examples/gno.land/r/demo/boards/z_0_d_filetest.gno
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var bid boards.BoardID
func init() {
std.TestSetRealm(std.NewUserRealm(std.Address("g1wymu47drhr0kuq2098m792lytgtj2nyx77yrsm"))) // so that CurrentRealm.Addr() matches OrigCaller
std.TestSetRealm(std.NewUserRealm(std.Address("g1wymu47drhr0kuq2098m792lytgtj2nyx77yrsm"))) // so that CurrentRealm.Addr() matches OrigCaller
users.Register("gnouser123")
users.Register("gnouser123")
bid = boards.CreateBoard("test_board")
boards.CreateReply(bid, 0, 0, "Reply of the second post")
}
Expand Down
3 changes: 2 additions & 1 deletion examples/gno.land/r/demo/boards/z_0_filetest.gno
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
package boards_test

import (
"std"

"gno.land/r/demo/boards"
users "gno.land/r/gnoland/users/v1"
"std"
)

var bid boards.BoardID
Expand Down
3 changes: 2 additions & 1 deletion examples/gno.land/r/demo/boards/z_12_c_filetest.gno
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ package boards_test
// SEND: 200000000ugnot

import (
"std"

"gno.land/r/demo/boards"
users "gno.land/r/gnoland/users/v1"
"std"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion examples/gno.land/r/demo/boards/z_12_d_filetest.gno
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ package boards_test
// SEND: 200000000ugnot

import (
"std"

"gno.land/r/demo/boards"
users "gno.land/r/gnoland/users/v1"
"std"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/gno.land/r/demo/boards/z_7_filetest.gno
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package boards_test

import (
"std"

"gno.land/r/demo/boards"
users "gno.land/r/gnoland/users/v1"
)
Expand Down

0 comments on commit 4e58502

Please sign in to comment.