z_set_flagging_threshold_01_filetest.gno
0.49 Kb · 25 lines
1// PKGPATH: gno.land/r/gnoland/boards2/v1/filetests/z_set_flagging_threshold_01_filetest
2
3package z_set_flagging_threshold_01_filetest
4
5import (
6 "testing"
7
8 "gno.land/p/gnoland/boards"
9
10 boards2 "gno.land/r/gnoland/boards2/v1"
11)
12
13const (
14 owner address = "g1rp7cmetn27eqlpjpc4vuusf8kaj746tysc0qgh"
15 bid boards.ID = 404
16)
17
18func main(cur realm) {
19 testing.SetRealm(testing.NewUserRealm(owner))
20
21 boards2.SetFlaggingThreshold(cross(cur), bid, 1)
22}
23
24// Error:
25// board does not exist with ID: 404