package main import ( "testing" boards2 "gno.land/r/gnoland/boards2/v1" ) const ( owner address = "g16jpf0puufcpcjkph5nxueec8etpcldz7zwgydq" // @devx user address = "g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj" // @test2 bid = boards2.BoardID(0) // Operate on realm DAO instead of individual boards role = boards2.RoleOwner ) func main() { testing.SetRealm(testing.NewUserRealm(owner)) boards2.InviteMember(cross, bid, user, role) // Check that user is invited println(boards2.HasMemberRole(bid, user, role)) } // Output: // true