From 402b50b6720084a88dfc4f65cff7ef00e1d6bc16 Mon Sep 17 00:00:00 2001 From: Khanh Hoa Date: Tue, 2 Jan 2024 11:46:35 +0700 Subject: [PATCH 1/2] fix: script unused --- scripts/run-node.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/run-node.sh b/scripts/run-node.sh index b73d65d4..38ccefa4 100755 --- a/scripts/run-node.sh +++ b/scripts/run-node.sh @@ -66,7 +66,6 @@ update_test_genesis '.app_state["mint"]["params"]["mint_denom"]="'$DENOM'"' update_test_genesis '.app_state["gov"]["deposit_params"]["min_deposit"]=[{"denom":"'$DENOM'","amount": "1000000"}]' update_test_genesis '.app_state["crisis"]["constant_fee"]={"denom":"'$DENOM'","amount":"1000"}' update_test_genesis '.app_state["staking"]["params"]["bond_denom"]="'$DENOM'"' -update_test_genesis '.app_state[" # enable rest server and swagger $SED_BINARY -i '0,/enable = false/s//enable = true/' $HOME_DIR/config/app.toml From 974f4aea1d36e78f61b9e0cff93de6018f28dc85 Mon Sep 17 00:00:00 2001 From: Khanh Hoa Date: Tue, 2 Jan 2024 15:42:23 +0700 Subject: [PATCH 2/2] chore: remove code not using --- app/app.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/app.go b/app/app.go index 1178c7e2..922f2593 100644 --- a/app/app.go +++ b/app/app.go @@ -717,9 +717,6 @@ func NewMigalooApp( ), ) - // upgrade handlers - cfg := module.NewConfigurator(appCodec, app.MsgServiceRouter(), app.GRPCQueryRouter()) - /**** Module Options ****/ // NOTE: we may consider parsing `appOpts` inside module constructors. For the moment @@ -891,7 +888,7 @@ func NewMigalooApp( app.MountTransientStores(tkeys) app.MountMemoryStores(memKeys) // register upgrade - app.setupUpgradeHandlers(cfg) + app.setupUpgradeHandlers() anteHandler, err := NewAnteHandler( HandlerOptions{ @@ -1094,7 +1091,7 @@ func RegisterSwaggerAPI(rtr *mux.Router) { } // Setup Upgrade Handler -func (app *MigalooApp) setupUpgradeHandlers(cfg module.Configurator) { +func (app *MigalooApp) setupUpgradeHandlers() { app.UpgradeKeeper.SetUpgradeHandler( v2.UpgradeName, v2.CreateUpgradeHandler(app.mm, app.configurator),