Search Apps Documentation Source Content File Folder Download Copy Actions Download

z_7_b_filetest.gno

0.49 Kb · 27 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 init() {
15	// Invite a user to be able to start creating DAOs
16	testing.SetRealm(testing.NewUserRealm(owner))
17	commondao.Invite(cross, user)
18}
19
20func main() {
21	testing.SetRealm(testing.NewUserRealm(user))
22
23	commondao.NewSubDAO(cross, "Foo", 404)
24}
25
26// Error:
27// DAO not found