Skip to content

Commit

Permalink
tweak: set localkey to be relay address
Browse files Browse the repository at this point in the history
  • Loading branch information
duvbell committed Apr 11, 2024
1 parent 98deb05 commit 176a8ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 0 additions & 2 deletions app/upgrades/v6_5_0/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions x/transfermiddleware/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 176a8ff

Please sign in to comment.