We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e42e1a commit 8e4356dCopy full SHA for 8e4356d
examples/gno.land/r/gov/dao/v3/impl/impl.gno
@@ -45,3 +45,11 @@ func AddMember(addr std.Address) {
45
panic(err.Error())
46
}
47
48
+
49
+func GetInstance() *GovDAO {
50
+ if std.PreviousRealm().PkgPath() != "gno.land/r/gov/dao/v3/loader" {
51
+ panic("not allowed")
52
+ }
53
54
+ return govDAO
55
+}
examples/gno.land/r/gov/dao/v3/loader/loader.gno
@@ -8,7 +8,7 @@ import (
8
// this is only executed when loaded into genesis
9
func init() {
10
dao.UpdateImpl(dao.UpdateRequest{
11
- DAO: impl.NewGovDAO(),
+ DAO: impl.GetInstance(),
12
AllowedDAOs: []string{"gno.land/r/gov/dao/v3/impl"},
13
})
14
0 commit comments