feat: EmptyAppOptions implement DynamicConfig (#23440)

This commit is contained in:
Julien Robert 2025-01-17 18:04:23 +01:00 committed by GitHub
parent b23bb7aee8
commit 86ab3f8b2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -283,6 +283,8 @@ func GenesisStateWithValSet(
return genesisState, nil
}
var _ server.DynamicConfig = EmptyAppOptions{}
// EmptyAppOptions is a stub implementing AppOptions
type EmptyAppOptions struct{}
@ -291,6 +293,11 @@ func (ao EmptyAppOptions) Get(o string) interface{} {
return nil
}
// GetString implements AppOptions
func (ao EmptyAppOptions) GetString(o string) string {
return ""
}
// AppOptionsMap is a stub implementing AppOptions which can get data from a map
type AppOptionsMap map[string]interface{}