From 5744eb9d768d150c5203d41bdc4d9a5012ba1895 Mon Sep 17 00:00:00 2001 From: joaopedroassis Date: Wed, 10 Mar 2021 18:42:48 -0300 Subject: [PATCH] change sentence ordering for better understanding --- assets/references.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/references.go b/assets/references.go index 312b41b..be5411c 100644 --- a/assets/references.go +++ b/assets/references.go @@ -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() @@ -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() @@ -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()