Skip to content

Commit

Permalink
feat: add v0.51 planbuilder, refactor test, fix client.toml file for …
Browse files Browse the repository at this point in the history
…v0.51
  • Loading branch information
amedumer committed Nov 13, 2023
1 parent 128bcb8 commit 2a3490f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tools/confix/cmd/migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestMigradeCmd(t *testing.T) {


// this should work
out, err = clitestutil.ExecTestCLICmd(clientCtx, cmd.MigrateCommand(), []string{"v0.47", fmt.Sprintf("%s/config/client.toml", clientCtx.HomeDir),"client", "--verbose"})
out, err = clitestutil.ExecTestCLICmd(clientCtx, cmd.MigrateCommand(), []string{"v0.51", fmt.Sprintf("%s/config/client.toml", clientCtx.HomeDir),"client", "--verbose"})
assert.NilError(t, err)
assert.Assert(t, strings.Contains(out.String(), "add chain-id key"))
assert.Assert(t, strings.Contains(out.String(), "add gas-adjustment key"))
}
15 changes: 10 additions & 5 deletions tools/confix/data/v0.51-client.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,21 @@
# For more information, see https://github.com/toml-lang/toml

###############################################################################
### Client Configuration ###
### Client Configuration ###
###############################################################################

# The network chain ID
chain-id = "demo"
# The keyring's backend, where the keys are stored (os|file|kwallet|pass|test|memory)
keyring-backend = "os"
keyring-backend = "test"
# Default key name, if set, defines the default key to use for signing transaction when the --from flag is not specified
keyring-default-keyname = ""
# CLI output format (text|json)
output = "text"
# <host>:<port> to Tendermint RPC interface for this chain
# <host>:<port> to CometBFT RPC interface for this chain
node = "tcp://localhost:26657"
# Transaction broadcasting mode (sync|async|block)
broadcast-mode = "sync"
# Transaction broadcasting mode (sync|async)
broadcast-mode = "sync"
# This is default the gas adjustment factor used in tx commands.
# It can be overwriten by the --gas-adjustment flag in each tx command.
gas-adjustment = 1.5
1 change: 1 addition & 0 deletions tools/confix/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ var Migrations = MigrationMap{
"v0.46": PlanBuilder,
"v0.47": PlanBuilder,
"v0.50": PlanBuilder,
"v0.51": PlanBuilder,
// "v0.xx.x": PlanBuilder, // add specific migration in case of configuration changes in minor versions
}

Expand Down

0 comments on commit 2a3490f

Please sign in to comment.