Skip to content

Commit

Permalink
FAB-2133 Fix marbles02 delete
Browse files Browse the repository at this point in the history
Fix marbles02 chaincode example delete function.

Change-Id: I80bddc3b7020f748be5df5fd483c8260f11eb706
Signed-off-by: denyeart <enyeart@us.ibm.com>
  • Loading branch information
denyeart committed Feb 8, 2017
1 parent f7c19f8 commit 9ced523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/chaincode/go/marbles02/marbles_chaincode.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func (t *SimpleChaincode) delete(stub shim.ChaincodeStubInterface, args []string
return shim.Error(jsonResp)
}

err = json.Unmarshal([]byte(jsonResp), &marbleJSON)
err = json.Unmarshal([]byte(valAsbytes), &marbleJSON)
if err != nil {
jsonResp = "{\"Error\":\"Failed to decode JSON of: " + marbleName + "\"}"
return shim.Error(jsonResp)
Expand Down

0 comments on commit 9ced523

Please sign in to comment.