Search Apps Documentation Source Content File Folder Download Copy

z_0_b_filetest.gno

0.37 Kb ยท 23 lines
 1// PKGPATH: gno.land/r/demo/boards_test
 2package boards_test
 3
 4// SEND: 19900000ugnot
 5
 6import (
 7	"gno.land/r/demo/boards"
 8	"gno.land/r/demo/users"
 9)
10
11var bid boards.BoardID
12
13func init() {
14	users.Register("", "gnouser", "my profile")
15	bid = boards.CreateBoard("test_board")
16}
17
18func main() {
19	println(boards.Render("test_board"))
20}
21
22// Error:
23// payment must not be less than 20000000