mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
Update asset_transfer_ledger_chaincode.go
Small off-by-1 bug fix. Signed-off-by: r2roC <arturo@IBM.com>
This commit is contained in:
parent
426cdf1f98
commit
1249207afd
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue