// PKGPATH: gno.land/r/gnoland/boards2/v0/filetests/z_request_invite_01_filetest package z_request_invite_01_filetest import ( "testing" "gno.land/p/gnoland/boards/v0" boards2 "gno.land/r/gnoland/boards2/v0" ) const owner address = "g1skl80cuz8zq3lul9pgz5pc35l2pfzgxgfpsqkx" var bid boards.ID func init(cur realm) { testing.SetRealm(testing.NewUserRealm(owner)) bid = boards2.CreateBoard(cross(cur), "test123", false, false) } func main(cur realm) { testing.SetRealm(testing.NewCodeRealm("gno.land/r/demo/test")) boards2.RequestInvite(cross(cur), bid) } // Error: // caller must be user