// PKGPATH: gno.land/r/gnoland/boards2/v1/filetests/z_set_realm_notice_02_filetest package z_set_realm_notice_02_filetest import ( "testing" boards2 "gno.land/r/gnoland/boards2/v1" ) const owner address = "g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj" // @test2 func main(cur realm) { // Call realm with a user that has not permission to set realm notice testing.SetRealm(testing.NewUserRealm(owner)) boards2.SetRealmNotice(cross(cur), "Foo") } // Error: // unauthorized, user g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj doesn't have the required permission