We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f9adee commit c0a5368Copy full SHA for c0a5368
app/app.go
@@ -140,12 +140,14 @@ import (
140
manifesttypes "github.com/liftedinit/manifest-ledger/x/manifest/types"
141
)
142
143
+// GetPoAAdmin returns the address of the PoA admin.
144
+// The default PoA admin is the governance module account.
145
func GetPoAAdmin() string {
146
if addr := os.Getenv("POA_ADMIN_ADDRESS"); addr != "" {
147
return addr
148
}
149
- panic("POA_ADMIN_ADDRESS environment variable not set")
150
+ return authtypes.NewModuleAddress(govtypes.ModuleName).String()
151
152
153
// We pull these out so we can set them with LDFLAGS in the Makefile
0 commit comments