Skip to content

Commit

Permalink
fix upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
kkast committed Apr 24, 2024
1 parent e1397ba commit fd90e43
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 12 deletions.
5 changes: 2 additions & 3 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"path/filepath"
"strings"

"github.com/notional-labs/composable/v6/app/upgrades/v6_6_0"
"github.com/notional-labs/composable/v6/app/upgrades/v6_6_1"

nodeservice "github.com/cosmos/cosmos-sdk/client/grpc/node"
authante "github.com/cosmos/cosmos-sdk/x/auth/ante"
Expand Down Expand Up @@ -38,7 +38,6 @@ import (
"github.com/cosmos/cosmos-sdk/x/bank"

"github.com/notional-labs/composable/v6/app/keepers"
"github.com/notional-labs/composable/v6/app/upgrades/v6_5_4"

// bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"

Expand Down Expand Up @@ -149,7 +148,7 @@ var (
// https://github.com/CosmWasm/wasmd/blob/02a54d33ff2c064f3539ae12d75d027d9c665f05/x/wasm/internal/types/proposal.go#L28-L34
EnableSpecificProposals = ""

Upgrades = []upgrades.Upgrade{v6_5_4.Upgrade, v6_6_0.Upgrade}
Upgrades = []upgrades.Upgrade{v6_6_1.Upgrade}
Forks = []upgrades.Fork{}
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v6_6_0
package v6_6_1

import (
store "github.com/cosmos/cosmos-sdk/store/types"
Expand All @@ -7,7 +7,7 @@ import (

const (
// UpgradeName defines the on-chain upgrade name for the composable upgrade.
UpgradeName = "v6_6_0"
UpgradeName = "v6_6_1"
)

var Upgrade = upgrades.Upgrade{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v6_6_0
package v6_6_1

import (
"github.com/CosmWasm/wasmd/x/wasm"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package v6_6_0_test
package v6_6_1_test

import (
"encoding/json"
"strings"
"testing"
"time"

"github.com/notional-labs/composable/v6/app/upgrades/v6_6_0"
"github.com/notional-labs/composable/v6/app/upgrades/v6_6_1"

"cosmossdk.io/math"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down Expand Up @@ -63,7 +63,7 @@ func (s *UpgradeTestSuite) TestForMigratingNewPrefix() {

/* == UPGRADE == */
upgradeHeight := int64(5)
s.ConfirmUpgradeSucceeded(v6_6_0.UpgradeName, upgradeHeight)
s.ConfirmUpgradeSucceeded(v6_6_1.UpgradeName, upgradeHeight)

/* == CHECK AFTER UPGRADE == */
checkUpgradeGovModule(s, acc1, proposal)
Expand Down
2 changes: 1 addition & 1 deletion scripts/test-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ HOME=mytestnet
ROOT=$(pwd)
DENOM=upica
CHAIN_ID=localpica
SOFTWARE_UPGRADE_NAME="v6_6_0"
SOFTWARE_UPGRADE_NAME="v6_6_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"

Expand Down
2 changes: 1 addition & 1 deletion scripts/upgrade/init_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


OLD_VERSION=kien-devnet-651
SOFTWARE_UPGRADE_NAME="v6_6_0"
SOFTWARE_UPGRADE_NAME="v6_6_1"
ROOT=$(pwd)

COMPOSABLE_VERSION="branchfortestingpfmfix"
Expand Down
2 changes: 1 addition & 1 deletion scripts/upgrade/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ HOME=mytestnet
ROOT=$(pwd)
DENOM=ppica
CHAIN_ID=centauri-dev
SOFTWARE_UPGRADE_NAME="v6_6_0"
SOFTWARE_UPGRADE_NAME="v6_6_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"
KEY="mykey"
Expand Down

0 comments on commit fd90e43

Please sign in to comment.