Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
likhita-809 committed Jul 25, 2022
1 parent 90d4ffa commit 759710e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions types/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,8 @@ func cacheBech32Addr(prefix string, addr []byte, cache *simplelru.LRU, cacheKey
return bech32Addr
}

// Bech32toValidatorAddresses returns []ValAddress from a list of Bech32 string addresses.
func Bech32toValidatorAddresses(validators []string) ([]ValAddress, error) {
// Bech32toValAddresses returns []ValAddress from a list of Bech32 string addresses.
func Bech32toValAddresses(validators []string) ([]ValAddress, error) {
vals := make([]ValAddress, len(validators))
for i, validator := range validators {
addr, err := ValAddressFromBech32(validator)
Expand Down
4 changes: 2 additions & 2 deletions x/authz/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ Examples:
delegateLimit = &spendLimit
}

allowed, err := sdk.Bech32toValidatorAddresses(allowValidators)
allowed, err := sdk.Bech32toValAddresses(allowValidators)
if err != nil {
return err
}

denied, err := sdk.Bech32toValidatorAddresses(denyValidators)
denied, err := sdk.Bech32toValAddresses(denyValidators)
if err != nil {
return err
}
Expand Down

0 comments on commit 759710e

Please sign in to comment.