Skip to content

Commit

Permalink
removed unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
randyahx authored and Keefe Liu committed Feb 14, 2023
1 parent 135cf26 commit c0d9d8f
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions x/slashing/client/testutil/impeach_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/cosmos/cosmos-sdk/testutil/network"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
banktestutil "github.com/cosmos/cosmos-sdk/x/bank/client/testutil"
govcli "github.com/cosmos/cosmos-sdk/x/gov/client/cli"
gov "github.com/cosmos/cosmos-sdk/x/gov/types"
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
Expand Down Expand Up @@ -114,22 +113,6 @@ func (s *ImpeachValidatorTestSuite) submitProposal(from string, isValidTestCase
}
}

func (s *ImpeachValidatorTestSuite) getCoin(recipientVal sdk.Address) {
val := s.network.Validators[0]

// Get coin from current validator
_, err := banktestutil.MsgSendExec(
val.ClientCtx,
val.Address,
recipientVal.Bytes(),
sdk.NewCoins(sdk.NewCoin(s.cfg.BondDenom, sdk.NewInt(200000000))),
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastBlock),
fmt.Sprintf("--%s=%s", flags.FlagFees, sdk.NewCoins(sdk.NewCoin(s.cfg.BondDenom, sdk.NewInt(10))).String()),
)
s.Require().NoError(err)
}

func (s *ImpeachValidatorTestSuite) voteProposal(proposalID string, val *network.Validator, voteOption string) {
clientCtx := val.ClientCtx
clientCtx.Client = s.network.Validators[0].RPCClient
Expand Down

0 comments on commit c0d9d8f

Please sign in to comment.