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_set_flagging_threshold_01_filetest.gno

0.49 Kb · 25 lines
 1// PKGPATH: gno.land/r/gnoland/boards2/v0/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/v0"
 9
10	boards2 "gno.land/r/gnoland/boards2/v0"
11)
12
13const (
14	owner address   = "g1skl80cuz8zq3lul9pgz5pc35l2pfzgxgfpsqkx"
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