diff --git a/gno/r/dao_realm/dao_realm.gno b/gno/r/dao_realm/dao_realm.gno index 886fbe4547..516da81f19 100644 --- a/gno/r/dao_realm/dao_realm.gno +++ b/gno/r/dao_realm/dao_realm.gno @@ -70,22 +70,7 @@ func init() { daoCore = dao_core.NewDAOCore(votingModuleFactory, proposalModulesFactories, messageHandlersFactories) - // dao_registry.Register(func() dao_interfaces.IDAOCore { return daoCore }, "DAO Realm", "Default testing DAO", "https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?w=1080&fit=max") -} - -// FIXME: the registry is currently broken in 'gno test', see https://github.com/gnolang/gno/issues/1852 -// so we're exposing a way to register after DAO instantiation -func RegisterSelf() { - if registered { - panic("already registered") - } - dao_registry.Register(func() dao_interfaces.IDAOCore { return daoCore }, "DAO Realm", "Default testing DAO", "https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?w=1080&fit=max") - registered = true -} - -func Render(path string) string { - return daoCore.Render(path) } func VoteJSON(moduleIndex int, proposalID int, voteJSON string) {