Search Apps Documentation Source Content File Folder Download Copy Actions Download

z_set_flagging_threshold_02_filetest.gno

0.42 Kb · 20 lines
 1// PKGPATH: gno.land/r/gnoland/boards2/v1/filetests/z_set_flagging_threshold_02_filetest
 2
 3package z_set_flagging_threshold_02_filetest
 4
 5import (
 6	"testing"
 7
 8	boards2 "gno.land/r/gnoland/boards2/v1"
 9)
10
11const owner address = "g1rp7cmetn27eqlpjpc4vuusf8kaj746tysc0qgh"
12
13func main(cur realm) {
14	testing.SetRealm(testing.NewUserRealm(owner))
15
16	boards2.SetFlaggingThreshold(cross(cur), 1, 0)
17}
18
19// Error:
20// invalid flagging threshold