Skip to content

Commit 19bbceb

Browse files
committed
chore: fix some function names in comment
Signed-off-by: finaltrip <[email protected]>
1 parent 4a4548a commit 19bbceb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: shim/handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ func (h *Handler) handleEstablished(msg *peer.ChaincodeMessage) error {
821821
return nil
822822
}
823823

824-
// hanndleCreated handles messages received from the peer when the handler is in the "created" state.
824+
// handleCreated handles messages received from the peer when the handler is in the "created" state.
825825
func (h *Handler) handleCreated(msg *peer.ChaincodeMessage) error {
826826
if msg.Type != peer.ChaincodeMessage_REGISTERED {
827827
return fmt.Errorf("[%s] Chaincode h cannot handle message (%s) while in state: %s", msg.Txid, msg.Type, h.state)

Diff for: shim/stub.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ func (iter *CommonIterator) HasNext() bool {
676676
return false
677677
}
678678

679-
// getResultsFromBytes deserializes QueryResult and return either a KV struct
679+
// getResultFromBytes deserializes QueryResult and return either a KV struct
680680
// or KeyModification depending on the result type (i.e., state (range/execute)
681681
// query, history query). Note that queryResult is an empty golang
682682
// interface that can hold values of any type.

0 commit comments

Comments
 (0)