Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

z_create_board_00_filetest.gno

0.42 Kb · 21 lines
 1// PKGPATH: gno.land/r/gnoland/boards2/v0/filetests/z_create_board_00_filetest
 2
 3package z_create_board_00_filetest
 4
 5import (
 6	"testing"
 7
 8	boards2 "gno.land/r/gnoland/boards2/v0"
 9)
10
11const owner address = "g1skl80cuz8zq3lul9pgz5pc35l2pfzgxgfpsqkx"
12
13func main(cur realm) {
14	testing.SetRealm(testing.NewUserRealm(owner))
15
16	bid := boards2.CreateBoard(cross(cur), "test123", false, false)
17	println("ID =", bid)
18}
19
20// Output:
21// ID = 1