Skip to content

Commit

Permalink
change sentence ordering for better understanding
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoPedroAssis authored and bandreghetti committed Mar 26, 2021
1 parent e2a2fdc commit 5744eb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/references.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/hyperledger/fabric/core/chaincode/shim"
)

// Refs returns all subAsset reference keys
// Refs returns an array of keys, containing the subAssets reference keys
func (a Asset) Refs() ([]Key, errors.ICCError) {
// Fetch asset properties
assetTypeDef := a.Type()
Expand Down Expand Up @@ -85,7 +85,7 @@ func (a Asset) Refs() ([]Key, errors.ICCError) {
return keys, nil
}

// ValidateRefs checks if subAsset refs exists in blockchain
// ValidateRefs checks if subAsset references exists in blockchain
func (a Asset) validateRefs(stub shim.ChaincodeStubInterface) errors.ICCError {
// Fetch references contained in asset
refKeys, err := a.Refs()
Expand Down Expand Up @@ -131,7 +131,7 @@ func (a Asset) delRefs(stub shim.ChaincodeStubInterface) errors.ICCError {
return nil
}

// PutRefs writes to the blockchain the references
// PutRefs writes the references to the blockchain
func (a Asset) putRefs(stub shim.ChaincodeStubInterface) errors.ICCError {
// Fetch references contained in asset
refKeys, err := a.Refs()
Expand Down

0 comments on commit 5744eb9

Please sign in to comment.