Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
tkxkd0159 committed Jun 20, 2024
1 parent 34d1301 commit d87cdac
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions x/fbridge/client/cli/tx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,17 @@ func (s *CLITestSuite) TestNewTransferTxCmd() {
respType proto.Message
expectedCode uint32
}{
{
name: "valid request",
args: cliArgs(
s.addrs[1].String(),
"10stake",
fmt.Sprintf("--%s=%s", flags.FlagFrom, s.addrs[0]),
),
expectErr: false,
respType: &sdk.TxResponse{},
expectedCode: 0,
},
{
name: "invalid from address",
args: cliArgs(
Expand All @@ -129,15 +140,13 @@ func (s *CLITestSuite) TestNewTransferTxCmd() {
expectErr: true,
},
{
name: "valid request",
name: "more than one coin",
args: cliArgs(
s.addrs[1].String(),
"10stake",
"10stake,20cony",
fmt.Sprintf("--%s=%s", flags.FlagFrom, s.addrs[0]),
),
expectErr: false,
respType: &sdk.TxResponse{},
expectedCode: 0,
expectErr: true,
},
}

Expand Down

0 comments on commit d87cdac

Please sign in to comment.