z_1_a_filetest.gno
0.36 Kb · 23 lines
1package main
2
3import (
4 "testing"
5
6 "gno.land/r/nt/commondao/v0"
7)
8
9const (
10 owner = address("g16jpf0puufcpcjkph5nxueec8etpcldz7zwgydq") // @devx
11 user = address("g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5") // @test1
12)
13
14func main() {
15 testing.SetRealm(testing.NewUserRealm(owner))
16
17 commondao.Invite(cross, user)
18
19 println(commondao.IsInvited(user))
20}
21
22// Output:
23// true