package main import ( "testing" pcommondao "gno.land/p/nt/commondao/v0" "gno.land/r/nt/commondao/v0" ) const ( owner = address("g16jpf0puufcpcjkph5nxueec8etpcldz7zwgydq") // @devx user = address("g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5") // @test1 ) var daoID uint64 func init() { // Invite a user to be able to start creating DAOs testing.SetRealm(testing.NewUserRealm(owner)) commondao.Invite(cross, user) // Create a new DAO which gives ownership to `test` testing.SetRealm(testing.NewUserRealm(user)) testing.SetRealm(testing.NewCodeRealm("gno.land/r/test")) dao := commondao.New(cross, "Foo") daoID = dao.ID() // Configure DAO dao.Members().Add(user) } func main() { testing.SetRealm(testing.NewUserRealm(user)) commondao.Vote(cross, daoID, 404, pcommondao.ChoiceYes, "") } // Error: // proposal not found