Skip to content

Commit

Permalink
v043 audit changes for types/ (#9290)
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 authored May 17, 2021
1 parent 589c67d commit 321aed8
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/core/proto-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ pagination. Ex:
| `offset` | [uint64](#uint64) | | offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set. |
| `limit` | [uint64](#uint64) | | limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app. |
| `count_total` | [bool](#bool) | | count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set. |
| `reverse` | [bool](#bool) | | reverse is set to true indicates that, results to be returned in the descending order. |
| `reverse` | [bool](#bool) | | reverse is set to true if results are to be returned in the descending order. |



Expand Down
2 changes: 1 addition & 1 deletion proto/cosmos/base/query/v1beta1/pagination.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ message PageRequest {
// is set.
bool count_total = 4;

// reverse is set to true indicates that, results to be returned in the descending order.
// reverse is set to true if results are to be returned in the descending order.
bool reverse = 5;
}

Expand Down
2 changes: 1 addition & 1 deletion proto/cosmos/base/reflection/v1beta1/reflection.proto
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ message ListImplementationsRequest {
// RPC.
message ListImplementationsResponse {
repeated string implementation_message_names = 1;
}
}
3 changes: 1 addition & 2 deletions types/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ import (
"strings"
"sync"

yaml "gopkg.in/yaml.v2"

"github.com/hashicorp/golang-lru/simplelru"
yaml "gopkg.in/yaml.v2"

cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
"github.com/cosmos/cosmos-sdk/internal/conv"
Expand Down
2 changes: 1 addition & 1 deletion types/address/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Account

This package defines Cosmos SDK address related functions.
This package defines Cosmos SDK address-related functions.

## References

Expand Down
1 change: 1 addition & 0 deletions types/address/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
// Len is the length of base addresses
const Len = sha256.Size

// Addressable represents any type from which we can derive an address.
type Addressable interface {
Address() []byte
}
Expand Down
3 changes: 1 addition & 2 deletions types/query/pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ import (
"fmt"
"math"

db "github.com/tendermint/tm-db"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

db "github.com/tendermint/tm-db"

"github.com/cosmos/cosmos-sdk/store/types"
)

Expand Down
2 changes: 1 addition & 1 deletion types/query/pagination.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion types/query/pagination_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"testing"

"github.com/stretchr/testify/suite"

tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
dbm "github.com/tendermint/tm-db"

Expand Down

0 comments on commit 321aed8

Please sign in to comment.