Skip to content

Commit c0a5368

Browse files
committed
fix: set default poa admin to gov module address
1 parent 0f9adee commit c0a5368

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/app.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,14 @@ import (
140140
manifesttypes "github.com/liftedinit/manifest-ledger/x/manifest/types"
141141
)
142142

143+
// GetPoAAdmin returns the address of the PoA admin.
144+
// The default PoA admin is the governance module account.
143145
func GetPoAAdmin() string {
144146
if addr := os.Getenv("POA_ADMIN_ADDRESS"); addr != "" {
145147
return addr
146148
}
147149

148-
panic("POA_ADMIN_ADDRESS environment variable not set")
150+
return authtypes.NewModuleAddress(govtypes.ModuleName).String()
149151
}
150152

151153
// We pull these out so we can set them with LDFLAGS in the Makefile

0 commit comments

Comments
 (0)