diff --git a/app/app.go b/app/app.go index 951348e..ed9054c 100644 --- a/app/app.go +++ b/app/app.go @@ -140,12 +140,14 @@ import ( manifesttypes "github.com/liftedinit/manifest-ledger/x/manifest/types" ) +// GetPoAAdmin returns the address of the PoA admin. +// The default PoA admin is the governance module account. func GetPoAAdmin() string { if addr := os.Getenv("POA_ADMIN_ADDRESS"); addr != "" { return addr } - panic("POA_ADMIN_ADDRESS environment variable not set") + return authtypes.NewModuleAddress(govtypes.ModuleName).String() } // We pull these out so we can set them with LDFLAGS in the Makefile