Skip to content

Commit

Permalink
💡 Correct Get description comment
Browse files Browse the repository at this point in the history
  • Loading branch information
andremacedopv committed Jul 7, 2023
1 parent 6510e45 commit 799f2b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions assets/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func get(stub *sw.StubWrapper, pvtCollection, key string, committed bool) (*Asse
return &response, nil
}

// GetMany fetches assets entries from write set or ledger.
// Get fetches asset entry from write set or ledger.
func (a *Asset) Get(stub *sw.StubWrapper) (*Asset, errors.ICCError) {
var pvtCollection string
if a.IsPrivate() {
Expand All @@ -64,7 +64,7 @@ func (k *Key) Get(stub *sw.StubWrapper) (*Asset, errors.ICCError) {
return get(stub, pvtCollection, k.Key(), false)
}

// Get fetches asset entry from write set or ledger.
// GetMany fetches assets entries from write set or ledger.
func GetMany(stub *sw.StubWrapper, keys []Key) ([]*Asset, errors.ICCError) {
var assets []*Asset

Expand Down
1 change: 0 additions & 1 deletion assets/history.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ type HistoryResponse struct {

func History(stub *sw.StubWrapper, key string, resolve bool) (*HistoryResponse, errors.ICCError) {
var resultsIterator shim.HistoryQueryIteratorInterface
// var responseMetadata *pb.QueryResponseMetadata

resultsIterator, err := stub.GetHistoryForKey(key)
if err != nil {
Expand Down

0 comments on commit 799f2b8

Please sign in to comment.