From 84186b07e13a9ff734e8b8fd9c4136361cbc55a0 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 17 Jan 2025 16:45:36 -0500 Subject: [PATCH] feat: `EmptyAppOptions` implement `DynamicConfig` (backport #23440) (#23446) Co-authored-by: Julien Robert Co-authored-by: aljo242 --- testutil/sims/app_helpers.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/testutil/sims/app_helpers.go b/testutil/sims/app_helpers.go index edea71b955..58ae7d28d8 100644 --- a/testutil/sims/app_helpers.go +++ b/testutil/sims/app_helpers.go @@ -10,6 +10,7 @@ import ( cmtjson "github.com/cometbft/cometbft/libs/json" cmttypes "github.com/cometbft/cometbft/types" + "cosmossdk.io/core/server" corestore "cosmossdk.io/core/store" coretesting "cosmossdk.io/core/testing" "cosmossdk.io/depinject" @@ -282,6 +283,8 @@ func GenesisStateWithValSet( return genesisState, nil } +var _ server.DynamicConfig = EmptyAppOptions{} + // EmptyAppOptions is a stub implementing AppOptions type EmptyAppOptions struct{} @@ -290,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{}