Skip to content

Commit

Permalink
remove unfinished test code
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer-zq committed Apr 18, 2024
1 parent 3c962a2 commit d05d49c
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions modules/token/client/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,50 +242,50 @@ func (s *IntegrationTestSuite) TestToken() {
// ---------------------------------------------------------------------------

//------test GetCmdSwapToErc20()-------------
args = []string{
fmt.Sprintf("--%s=%s", tokencli.FlagTo, to.String()),

fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync),
fmt.Sprintf(
"--%s=%s",
flags.FlagFees,
sdk.NewCoins(sdk.NewCoin(s.network.BondDenom, sdk.NewInt(10))).String(),
),
}

txResult = tokentestutil.SwapToERC20Exec(
s.T(),
s.network,
clientCtx,
from.String(),
sdk.NewCoins(sdk.NewCoin(s.network.BondDenom, sdk.NewInt(1))).String(),
args...)
// args = []string{
// fmt.Sprintf("--%s=%s", tokencli.FlagTo, to.String()),

// fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
// fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync),
// fmt.Sprintf(
// "--%s=%s",
// flags.FlagFees,
// sdk.NewCoins(sdk.NewCoin(s.network.BondDenom, sdk.NewInt(10))).String(),
// ),
// }

// txResult = tokentestutil.SwapToERC20Exec(
// s.T(),
// s.network,
// clientCtx,
// from.String(),
// sdk.NewCoins(sdk.NewCoin(s.network.BondDenom, sdk.NewInt(1))).String(),
// args...)

// TODO assert
// s.Require().Equal(expectedCode, txResult.Code)
// ---------------------------------------------------------------------------

//------test GetCmdSwapFromErc20()-------------
args = []string{
fmt.Sprintf("--%s=%s", tokencli.FlagTo, to.String()),

fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync),
fmt.Sprintf(
"--%s=%s",
flags.FlagFees,
sdk.NewCoins(sdk.NewCoin(s.network.BondDenom, sdk.NewInt(10))).String(),
),
}

txResult = tokentestutil.SwapFromERC20Exec(
s.T(),
s.network,
clientCtx,
from.String(),
sdk.NewCoins(sdk.NewCoin(s.network.BondDenom, sdk.NewInt(1))).String(),
args...)
// args = []string{
// fmt.Sprintf("--%s=%s", tokencli.FlagTo, to.String()),

// fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
// fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync),
// fmt.Sprintf(
// "--%s=%s",
// flags.FlagFees,
// sdk.NewCoins(sdk.NewCoin(s.network.BondDenom, sdk.NewInt(10))).String(),
// ),
// }

// txResult = tokentestutil.SwapFromERC20Exec(
// s.T(),
// s.network,
// clientCtx,
// from.String(),
// sdk.NewCoins(sdk.NewCoin(s.network.BondDenom, sdk.NewInt(1))).String(),
// args...)

// TODO assert
// s.Require().Equal(expectedCode, txResult.Code)
Expand Down

0 comments on commit d05d49c

Please sign in to comment.