z_22_f_filetest.gno

0.49 Kb ยท 29 lines
 1package main
 2
 3import (
 4	"std"
 5	"testing"
 6
 7	boards2 "gno.land/r/gnoland/boards2/v1"
 8)
 9
10const owner = std.Address("g16jpf0puufcpcjkph5nxueec8etpcldz7zwgydq") // @devx
11
12func init() {
13	// Lock the realm without locking realm members
14	testing.SetRealm(std.NewUserRealm(owner))
15	boards2.LockRealm(cross, false)
16}
17
18func main() {
19	testing.SetRealm(std.NewUserRealm(owner))
20
21	boards2.LockRealm(cross, true)
22
23	println(boards2.IsRealmLocked())
24	println(boards2.AreRealmMembersLocked())
25}
26
27// Output:
28// true
29// true