Skip to content

Commit

Permalink
address review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
atheeshp committed Aug 6, 2021
1 parent c77a8e5 commit 3688241
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
* [\#9533](https://github.com/cosmos/cosmos-sdk/pull/9533) Added a new gRPC method, `DenomOwners`, in `x/bank` to query for all account holders of a specific denomination.
* (bank) [\#9618](https://github.com/cosmos/cosmos-sdk/pull/9618) Update bank.Metadata: add URI and URIHash attributes.
* [\#9750](https://github.com/cosmos/cosmos-sdk/pull/9750) Emit events for tx signature and sequence, so clients can now query txs by signature (`tx.signature='<base64_sig>'`) or by address and sequence combo (`tx.acc_seq='<addr>/<seq>'`).
* [\#9837](https://github.com/cosmos/cosmos-sdk/issues/9837) `--generate-only` flag will accept the keyname now.

### API Breaking Changes

Expand Down
16 changes: 14 additions & 2 deletions x/auth/client/testutil/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ func (s *IntegrationTestSuite) TestCLISignGenOnlyWithKeyName() {

sendTokens := sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(10)))
args := []string{
keyName, // from
keyName, // from keyname
val2.Address.String(),
sendTokens.String(),
fmt.Sprintf("--%s=true", flags.FlagGenerateOnly), // shouldn't break the if keyname with --generate-only
fmt.Sprintf("--%s=true", flags.FlagGenerateOnly), // shouldn't break if we use keyname with --generate-only flag
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastBlock),
}
Expand Down Expand Up @@ -157,6 +157,18 @@ func (s *IntegrationTestSuite) TestCLISignGenOnlyWithKeyName() {
false,
"",
},
{
"offline mode with account-number, sequence and address key (valid)",
[]string{
opFile.Name(),
fmt.Sprintf("--%s=true", flags.FlagOffline),
fmt.Sprintf("--%s=%s", flags.FlagFrom, val.Address.String()),
fmt.Sprintf("--%s=%d", flags.FlagAccountNumber, account.GetAccountNumber()),
fmt.Sprintf("--%s=%d", flags.FlagSequence, account.GetSequence()),
},
false,
"",
},
{
"offline mode without account-number and keyname (invalid)",
[]string{
Expand Down

0 comments on commit 3688241

Please sign in to comment.