Skip to content

Commit

Permalink
fix client config don't take effect (backport cosmos#9211) (cosmos#9360)
Browse files Browse the repository at this point in the history
* fix client config don't take effect (cosmos#9211)

* fix client keyring config

* fix output flag of keys commads

Co-authored-by: Robert Zaremba <[email protected]>
Co-authored-by: Amaury <[email protected]>
(cherry picked from commit b4d1a5e)

* Fix conflicts

Co-authored-by: yihuang <[email protected]>
Co-authored-by: Amaury M <[email protected]>
  • Loading branch information
3 people authored and faddat committed Dec 18, 2022
1 parent 59bc262 commit 652fca9
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 3 deletions.
3 changes: 0 additions & 3 deletions client/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ func TestConfigCmd(t *testing.T) {
require.NoError(t, err)
require.Equal(t, string(out), testNode1+"\n")
}

func TestConfigCmdEnvFlag(t *testing.T) {
const (
defaultNode = "http://localhost:26657"
Expand Down Expand Up @@ -92,10 +91,8 @@ func TestConfigCmdEnvFlag(t *testing.T) {
}()
/*
env var is set with a flag
NODE=http://localhost:1 ./build/simd q staking validators --node http://localhost:2
Error: post failed: Post "http://localhost:2": dial tcp 127.0.0.1:2: connect: connection refused
We dial http://localhost:2 cause a flag has the higher priority than env variable.
*/
cmd := cli.GetQueryCmd()
Expand Down
2 changes: 2 additions & 0 deletions x/bank/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import (
)

// Simulation operation weights constants
//
//nolint:gosec
const (
OpWeightMsgSend = "op_weight_msg_send"
OpWeightMsgMultiSend = "op_weight_msg_multisend"
Expand Down
2 changes: 2 additions & 0 deletions x/distribution/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import (
)

// Simulation operation weights constants
//
//nolint:gosec
const (
OpWeightMsgSetWithdrawAddress = "op_weight_msg_set_withdraw_address"
OpWeightMsgWithdrawDelegationReward = "op_weight_msg_withdraw_delegation_reward"
Expand Down
2 changes: 2 additions & 0 deletions x/gov/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import (
var initialProposalID = uint64(100000000000000)

// Simulation operation weights constants
//
//nolint:gosec
const (
OpWeightMsgDeposit = "op_weight_msg_deposit"
OpWeightMsgVote = "op_weight_msg_vote"
Expand Down
2 changes: 2 additions & 0 deletions x/slashing/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import (
)

// Simulation operation weights constants
//
//nolint:gosec
const (
OpWeightMsgUnjail = "op_weight_msg_unjail"
)
Expand Down
2 changes: 2 additions & 0 deletions x/staking/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import (
)

// Simulation operation weights constants
//
//nolint:gosec
const (
OpWeightMsgCreateValidator = "op_weight_msg_create_validator"
OpWeightMsgEditValidator = "op_weight_msg_edit_validator"
Expand Down

0 comments on commit 652fca9

Please sign in to comment.