From 7224220d79023b0779e6ab304a4e6a02f9f070aa Mon Sep 17 00:00:00 2001 From: Norman Meier Date: Wed, 30 Oct 2024 16:13:19 +0100 Subject: [PATCH] fix(gno-dao): remove workaround Signed-off-by: Norman Meier --- gno/r/dao_realm/dao_realm.gno | 15 --------------- 1 file changed, 15 deletions(-) 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) {