Search Apps Documentation Source Content File Folder Download Copy Actions Download

z_create_board_04_filetest.gno

0.46 Kb · 23 lines
 1package main
 2
 3import (
 4	"testing"
 5
 6	boards2 "gno.land/r/gnoland/boards2/v1"
 7	uinit "gno.land/r/sys/users/init"
 8)
 9
10const owner address = "g16jpf0puufcpcjkph5nxueec8etpcldz7zwgydq"
11
12func init() {
13	uinit.RegisterUser(cross, "gnoland", address("g1g3lsfxhvaqgdv4ccemwpnms4fv6t3aq3p5z6u7"))
14}
15
16func main() {
17	testing.SetRealm(testing.NewUserRealm(owner))
18
19	boards2.CreateBoard(cross, "gnoland", false, false)
20}
21
22// Error:
23// board name is a user name registered to a different user