Search Apps Documentation Source Content File Folder Download Copy Actions Download

z_1_c_filetest.gno

0.39 Kb · 22 lines
 1package main
 2
 3import (
 4	"testing"
 5
 6	"gno.land/r/nt/commondao/v0"
 7)
 8
 9const (
10	user    = address("g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5") // @test1
11	invitee = address("g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj") // @test2
12)
13
14func main() {
15	// Call as a users which is not a Common DAO member
16	testing.SetRealm(testing.NewUserRealm(user))
17
18	commondao.Invite(cross, invitee)
19}
20
21// Error:
22// unauthorized