package main import ( "strings" "testing" "gno.land/r/nt/commondao/v0" ) const ( owner = address("g16jpf0puufcpcjkph5nxueec8etpcldz7zwgydq") // @devx user = address("g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5") // @test1 ) var ( daoID uint64 name = strings.Repeat("A", 61) ) func init() { testing.SetRealm(testing.NewUserRealm(owner)) commondao.Invite(cross, user) testing.SetRealm(testing.NewUserRealm(user)) testing.SetRealm(testing.NewCodeRealm("gno.land/r/demo/test")) dao := commondao.New(cross, "Foo") dao.Members().Add(user) options := commondao.GetOptions(dao.ID()) options.SetAllowChildren(true) options.SetAllowSubDAOPorposals(true) daoID = dao.ID() } func main() { testing.SetRealm(testing.NewUserRealm(user)) commondao.CreateSubDAOProposal(cross, daoID, name, "g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5") } // Error: // DAO name is too long, max length is 60 characters