z_3_e_filetest.gno
0.47 Kb ยท 26 lines
1package main
2
3import (
4 "testing"
5
6 boards2 "gno.land/r/gnoland/boards2/v1"
7)
8
9const (
10 owner address = "g16jpf0puufcpcjkph5nxueec8etpcldz7zwgydq" // @devx
11 name = "foo123"
12)
13
14func init() {
15 testing.SetRealm(testing.NewUserRealm(owner))
16 boards2.CreateBoard(cross, name, false)
17}
18
19func main() {
20 testing.SetRealm(testing.NewUserRealm(owner))
21
22 boards2.RenameBoard(cross, name, "g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5")
23}
24
25// Error:
26// addresses are not allowed as board name