Update asset_transfer_ledger_chaincode.go

Small off-by-1 bug fix.

Signed-off-by: r2roC <arturo@IBM.com>
This commit is contained in:
r2roC 2020-07-08 10:11:52 -04:00 committed by denyeart
parent 426cdf1f98
commit 1249207afd

View file

@ -293,7 +293,7 @@ func (t *SimpleChaincode) TransferAssetBasedOnColor(ctx contractapi.TransactionC
return fmt.Errorf(err.Error())
}
if len(compositeKeyParts) > 2 {
if len(compositeKeyParts) > 1 {
returnedAssetID := compositeKeyParts[1]
// Now call the transfer function for the found asset.