z_22_c_filetest.gno
0.35 Kb ยท 20 lines
1package main
2
3import (
4 "std"
5 "testing"
6
7 boards2 "gno.land/r/gnoland/boards2/v1"
8)
9
10const owner = std.Address("g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj") // @test2
11
12func main() {
13 // Call realm with a user that has not permission to lock the realm
14 testing.SetRealm(std.NewUserRealm(owner))
15
16 boards2.LockRealm(cross, false)
17}
18
19// Error:
20// unauthorized