Skip to content

Commit

Permalink
fix system test
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilkumarpilli committed Oct 10, 2024
1 parent fd94d8e commit a9f74cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tests/systemtests/distribution_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ func TestWithdrawAllRewardsCmd(t *testing.T) {
t.Run(tc.name, func(t *testing.T) {
assertGenOnlyOutput := func(_ assert.TestingT, gotErr error, gotOutputs ...interface{}) bool {
require.Len(t, gotOutputs, 1)
// gets output combining two objects without any space or new line
splitOutput := strings.Split(gotOutputs[0].(string), "}{")
// split txs with new line
splitOutput := strings.Split(strings.Trim(gotOutputs[0].(string), "\n"), "\n")
require.Len(t, splitOutput, tc.expTxLen)
return false
}
Expand Down
13 changes: 7 additions & 6 deletions x/auth/client/cli/tx_sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,13 @@ func makeSignBatchCmd() func(cmd *cobra.Command, args []string) error {
}

if !clientCtx.Offline {
from := multisigKey
if multisigKey == "" {
from, err = cmd.Flags().GetString(flags.FlagFrom)
if err != nil {
return err
}
from, err := cmd.Flags().GetString(flags.FlagFrom)
if err != nil {
return err
}

if multisigKey != "" {
from = multisigKey
}

fromAddr, _, _, err := client.GetFromFields(clientCtx, txFactory.Keybase(), from)
Expand Down

0 comments on commit a9f74cd

Please sign in to comment.