Skip to content

Commit

Permalink
fix: register subspace ibc transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
kienn6034 committed May 19, 2024
1 parent 2306ac0 commit d2a6a59
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ localnet-pica:
bash ./scripts/run-node.sh picad
bash ./scripts/50/store-wasm-code.sh

localnet-picasso:
localnet-parachain:
@echo "Starting localnet"
bash ./scripts/relayer_hyperspace/run-picasso.sh
bash ./scripts/upgrade/setup-polkadot-node.sh

relayer-create-clients:
@echo "Starting relayer"
Expand Down
2 changes: 1 addition & 1 deletion app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ func (appKeepers *AppKeepers) initParamsKeeper(appCodec codec.BinaryCodec, legac
keyTable := ibcclienttypes.ParamKeyTable()
keyTable.RegisterParamSet(&ibcconnectiontypes.Params{})
paramsKeeper.Subspace(ibcexported.ModuleName).WithKeyTable(keyTable)
paramsKeeper.Subspace(ibctransfertypes.ModuleName)
paramsKeeper.Subspace(ibctransfertypes.ModuleName).WithKeyTable(ibctransfertypes.ParamKeyTable())
paramsKeeper.Subspace(icacontrollertypes.SubModuleName).WithKeyTable(icacontrollertypes.ParamKeyTable())
paramsKeeper.Subspace(icahosttypes.SubModuleName).WithKeyTable(icahosttypes.ParamKeyTable())

Expand Down
5 changes: 4 additions & 1 deletion app/upgrades/v7_0_1/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package v7_0_1

import (
"context"
upgradetypes "cosmossdk.io/x/upgrade/types"
"encoding/hex"
"fmt"

upgradetypes "cosmossdk.io/x/upgrade/types"
"github.com/cosmos/cosmos-sdk/runtime"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
Expand Down Expand Up @@ -53,6 +54,8 @@ func CreateUpgradeHandler(
listCheckSum = append(listCheckSum, checksumStr)
}

// Register SendEnabled for legacy subspace

checksum := types.Checksums{Checksums: listCheckSum}
bz, err := codec.Marshal(&checksum)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions scripts/relayer_hyperspace/config-chain-b.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ rpc_url = "http://127.0.0.1:26657/"
grpc_url = "http://127.0.0.1:9090/"
websocket_url = "ws://127.0.0.1:26657/websocket"
chain_id = "centauri-dev"
client_id = "07-tendermint-2"
client_id = "07-tendermint-0"
connection_id = "connection-0"
account_prefix = "pica"
fee_denom = "ppica"
fee_amount = "9223372036854776"
gas_limit = 9223372036854775806
store_prefix = "ibc"
max_tx_size = 20000000
wasm_checksum = "3e743bf804a60e5fd1dfab6c61bba0f2e76cda260edc66d6b7b10691fb5096c1"
wasm_code_id = "9d5056f2b551213094a03b788db80274445175bae78c8fede38bf25a2ddc84bc"
channel_whitelist = [["channel-0", "transfer"], ["channel-0", "transfer"], ["channel-0", "transfer"]]
mnemonic = "decorate bright ozone fork gallery riot bus exhaust worth way bone indoor calm squirrel merry zero scheme cotton until shop any excess stage laundry"
skip_optional_client_updates = false
Expand Down
4 changes: 2 additions & 2 deletions scripts/upgrade/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ ROOT=$(pwd)
DENOM=ppica
CHAIN_ID=centauri-dev
SOFTWARE_UPGRADE_NAME="v7_0_1"
ADDITIONAL_PRE_SCRIPTS="./scripts/upgrade/v_6_4_8/pre-script.sh"
ADDITIONAL_AFTER_SCRIPTS="./scripts/upgrade/v_6_4_8/post-script.sh"
ADDITIONAL_PRE_SCRIPTS="./scripts/upgrade/v_6_6_0/pre-script.sh"
ADDITIONAL_AFTER_SCRIPTS="./scripts/upgrade/v_6_6_0/post-script.sh"
KEY="mykey"
KEY1="mykey1"

Expand Down

0 comments on commit d2a6a59

Please sign in to comment.