Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some comments #109

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/statebased/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ type KeyEndorsementPolicy interface {
// policy for this KVS key.
DelOrgs(organizations ...string)

// ListOrgs returns an array of channel orgs that are required to endorse chnages
// ListOrgs returns an array of channel orgs that are required to endorse changes
ListOrgs() []string
}
2 changes: 1 addition & 1 deletion pkg/statebased/statebasedimpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (s *stateEP) DelOrgs(delorgs ...string) {
}
}

// ListOrgs returns an array of channel orgs that are required to endorse chnages
// ListOrgs returns an array of channel orgs that are required to endorse changes
func (s *stateEP) ListOrgs() []string {
orgNames := make([]string, 0, len(s.orgs))
for mspid := range s.orgs {
Expand Down
4 changes: 2 additions & 2 deletions shim/stub.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func newChaincodeStub(handler *Handler, channelID, txid string, input *pb.Chainc
}
stub.creator = shdr.GetCreator()

// extract trasient data from proposal payload
// extract transient data from proposal payload
payload := &pb.ChaincodeProposalPayload{}
if err := proto.Unmarshal(stub.proposal.GetPayload(), payload); err != nil {
return nil, fmt.Errorf("failed to extract proposal payload: %s", err)
Expand Down Expand Up @@ -493,7 +493,7 @@ func validateCompositeKeyAttribute(str string) error {

// To ensure that simple keys do not go into composite key namespace,
// we validate simplekey to check whether the key starts with 0x00 (which
// is the namespace for compositeKey). This helps in avoding simple/composite
// is the namespace for compositeKey). This helps in avoiding simple/composite
// key collisions.
func validateSimpleKeys(simpleKeys ...string) error {
for _, key := range simpleKeys {
Expand Down
2 changes: 1 addition & 1 deletion shimtest/mockstub.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func (stub *MockStub) GetStateByRange(startKey, endKey string) (shim.StateQueryI

// To ensure that simple keys do not go into composite key namespace,
// we validate simplekey to check whether the key starts with 0x00 (which
// is the namespace for compositeKey). This helps in avoding simple/composite
// is the namespace for compositeKey). This helps in avoiding simple/composite
// key collisions.
func validateSimpleKeys(simpleKeys ...string) error {
for _, key := range simpleKeys {
Expand Down
Loading