5
5
"cosmossdk.io/core/appmodule"
6
6
"cosmossdk.io/log"
7
7
dbm "github.com/cosmos/cosmos-db"
8
+ "github.com/cosmos/cosmos-sdk/client/flags"
8
9
runtimeservices "github.com/cosmos/cosmos-sdk/runtime/services"
9
- simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
10
10
sdk "github.com/cosmos/cosmos-sdk/types"
11
11
"github.com/cosmos/cosmos-sdk/types/module"
12
12
authcodec "github.com/cosmos/cosmos-sdk/x/auth/codec"
@@ -18,7 +18,7 @@ import (
18
18
19
19
// MakeEncodingConfig creates an EncodingConfig for testing
20
20
func MakeEncodingConfig () params.EncodingConfig {
21
- tempApp := NewMinitiaApp (log .NewNopLogger (), dbm .NewMemDB (), nil , true , []wasmkeeper.Option {}, simtestutil. EmptyAppOptions {})
21
+ tempApp := NewMinitiaApp (log .NewNopLogger (), dbm .NewMemDB (), nil , true , []wasmkeeper.Option {}, EmptyAppOptions {})
22
22
encodingConfig := params.EncodingConfig {
23
23
InterfaceRegistry : tempApp .InterfaceRegistry (),
24
24
Codec : tempApp .AppCodec (),
@@ -30,7 +30,7 @@ func MakeEncodingConfig() params.EncodingConfig {
30
30
}
31
31
32
32
func AutoCliOpts () autocli.AppOptions {
33
- tempApp := NewMinitiaApp (log .NewNopLogger (), dbm .NewMemDB (), nil , true , []wasmkeeper.Option {}, simtestutil. EmptyAppOptions {})
33
+ tempApp := NewMinitiaApp (log .NewNopLogger (), dbm .NewMemDB (), nil , true , []wasmkeeper.Option {}, EmptyAppOptions {})
34
34
modules := make (map [string ]appmodule.AppModule , 0 )
35
35
for _ , m := range tempApp .ModuleManager .Modules {
36
36
if moduleWithName , ok := m .(module.HasName ); ok {
@@ -51,6 +51,18 @@ func AutoCliOpts() autocli.AppOptions {
51
51
}
52
52
53
53
func BasicManager () module.BasicManager {
54
- tempApp := NewMinitiaApp (log .NewNopLogger (), dbm .NewMemDB (), nil , true , []wasmkeeper.Option {}, simtestutil. EmptyAppOptions {})
54
+ tempApp := NewMinitiaApp (log .NewNopLogger (), dbm .NewMemDB (), nil , true , []wasmkeeper.Option {}, EmptyAppOptions {})
55
55
return tempApp .BasicModuleManager
56
56
}
57
+
58
+ // EmptyAppOptions is a stub implementing AppOptions
59
+ type EmptyAppOptions struct {}
60
+
61
+ // Get implements AppOptions
62
+ func (ao EmptyAppOptions ) Get (o string ) interface {} {
63
+ if o == flags .FlagHome {
64
+ return DefaultNodeHome
65
+ }
66
+
67
+ return nil
68
+ }
0 commit comments