From 0f184cf2d3abdafdc53321ce3c89a9720ae33b41 Mon Sep 17 00:00:00 2001 From: kkast Date: Wed, 20 Mar 2024 20:24:21 +0300 Subject: [PATCH] fixing testnet storage --- app/upgrades/v6_4_8/constants.go | 6 ++++++ app/upgrades/v6_4_8/upgrade.go | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/app/upgrades/v6_4_8/constants.go b/app/upgrades/v6_4_8/constants.go index 9acdab08..bb164f5c 100644 --- a/app/upgrades/v6_4_8/constants.go +++ b/app/upgrades/v6_4_8/constants.go @@ -1,7 +1,9 @@ package v6_4_8 import ( + store "github.com/cosmos/cosmos-sdk/store/types" "github.com/notional-labs/composable/v6/app/upgrades" + ibctransfermiddleware "github.com/notional-labs/composable/v6/x/ibctransfermiddleware/types" ) const ( @@ -12,4 +14,8 @@ const ( var Upgrade = upgrades.Upgrade{ UpgradeName: UpgradeName, CreateUpgradeHandler: CreateUpgradeHandler, + StoreUpgrades: store.StoreUpgrades{ + Added: []string{ibctransfermiddleware.StoreKey}, + Deleted: []string{}, + }, } diff --git a/app/upgrades/v6_4_8/upgrade.go b/app/upgrades/v6_4_8/upgrade.go index dde896d6..58fe2a14 100644 --- a/app/upgrades/v6_4_8/upgrade.go +++ b/app/upgrades/v6_4_8/upgrade.go @@ -8,6 +8,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" "github.com/notional-labs/composable/v6/app/keepers" "github.com/notional-labs/composable/v6/app/upgrades" + ibctransfermiddleware "github.com/notional-labs/composable/v6/x/ibctransfermiddleware/types" ) func CreateUpgradeHandler( @@ -18,6 +19,9 @@ func CreateUpgradeHandler( keepers *keepers.AppKeepers, ) upgradetypes.UpgradeHandler { return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { + custommiddlewareparams := ibctransfermiddleware.DefaultGenesisState() + keepers.IbcTransferMiddlewareKeeper.SetParams(ctx, custommiddlewareparams.Params) + // remove broken proposals BrokenProposals := [3]uint64{2, 6, 11} for _, proposal_id := range BrokenProposals {