From fb65bf6aa29fd1096ec88d71e78c219f5555f26c Mon Sep 17 00:00:00 2001 From: jess Date: Wed, 16 Mar 2022 12:56:09 +0900 Subject: [PATCH] fix(app): use viper as appOpts instead of Default --- sync.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sync.go b/sync.go index 83f2ac9..053648b 100644 --- a/sync.go +++ b/sync.go @@ -5,7 +5,6 @@ import ( "encoding/hex" "fmt" "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/simapp" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/gorilla/mux" "github.com/spf13/viper" @@ -71,6 +70,7 @@ func main() { // customize CMS to limit kv store's read height on query cms := rootmulti.NewStore(batched, hldb) + vpr := viper.GetViper() var app = terra.NewTerraApp( logger, @@ -81,8 +81,8 @@ func main() { mantlemintConfig.Home, 0, codec, - simapp.EmptyAppOptions{}, - wasmconfig.GetConfig(viper.GetViper()), + vpr, + wasmconfig.GetConfig(vpr), fauxMerkleModeOpt, func(ba *baseapp.BaseApp) { ba.SetCMS(cms)