From 176a8ff347b14f2a6c114381ec795952fdb4c5c3 Mon Sep 17 00:00:00 2001 From: kienn6034 Date: Thu, 11 Apr 2024 12:23:08 +0700 Subject: [PATCH] tweak: set localkey to be relay address --- app/app.go | 1 + app/upgrades/v6_5_0/upgrade.go | 2 -- x/transfermiddleware/keeper/genesis.go | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/app.go b/app/app.go index c43f67d11..6f946ff97 100644 --- a/app/app.go +++ b/app/app.go @@ -634,6 +634,7 @@ func (app *ComposableApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain if err := tmjson.Unmarshal(req.AppStateBytes, &genesisState); err != nil { panic(err) } + app.UpgradeKeeper.SetModuleVersionMap(ctx, app.mm.GetVersionMap()) return app.mm.InitGenesis(ctx, app.appCodec, genesisState) } diff --git a/app/upgrades/v6_5_0/upgrade.go b/app/upgrades/v6_5_0/upgrade.go index a58520c3d..18cf2ad54 100644 --- a/app/upgrades/v6_5_0/upgrade.go +++ b/app/upgrades/v6_5_0/upgrade.go @@ -22,8 +22,6 @@ func CreateUpgradeHandler( custommiddlewareparams := ibctransfermiddleware.DefaultGenesisState() keepers.IbcTransferMiddlewareKeeper.SetParams(ctx, custommiddlewareparams.Params) - keepers.TransferMiddlewareKeeper.SetAllowRlyAddress(ctx, "centauri1hj5fveer5cjtn4wd6wstzugjfdxzl0xpzxlwgs") - // remove broken proposals // BrokenProposals := [3]uint64{2, 6, 11} // for _, proposal_id := range BrokenProposals { diff --git a/x/transfermiddleware/keeper/genesis.go b/x/transfermiddleware/keeper/genesis.go index 6a4615b7e..117db527b 100644 --- a/x/transfermiddleware/keeper/genesis.go +++ b/x/transfermiddleware/keeper/genesis.go @@ -12,6 +12,8 @@ func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState) { for _, tokenInfo := range genState.TokenInfos { k.AddParachainIBCInfo(ctx, tokenInfo.IbcDenom, tokenInfo.ChannelID, tokenInfo.NativeDenom, tokenInfo.AssetId) } + + k.SetAllowRlyAddress(ctx, "centauri1hj5fveer5cjtn4wd6wstzugjfdxzl0xpzxlwgs") k.SetParams(ctx, genState.Params) }