From d87cdac249f9c9f6d5d70bf4740a24f033f9f629 Mon Sep 17 00:00:00 2001 From: Jayden Lee <41176085+tkxkd0159@users.noreply.github.com> Date: Thu, 20 Jun 2024 13:56:26 +0900 Subject: [PATCH] chore --- x/fbridge/client/cli/tx_test.go | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/x/fbridge/client/cli/tx_test.go b/x/fbridge/client/cli/tx_test.go index 89cf704c4e..24b6f60f2a 100644 --- a/x/fbridge/client/cli/tx_test.go +++ b/x/fbridge/client/cli/tx_test.go @@ -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( @@ -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, }, }