Skip to content

Commit

Permalink
fix: set default poa admin to gov module address
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorency committed Aug 5, 2024
1 parent 0f9adee commit c0a5368
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Check warning on line 150 in app/app.go

View check run for this annotation

Codecov / codecov/patch

app/app.go#L150

Added line #L150 was not covered by tests
}

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

0 comments on commit c0a5368

Please sign in to comment.