From 9ced523bd6566764e83f5243a71923a6d528eb19 Mon Sep 17 00:00:00 2001 From: denyeart Date: Wed, 8 Feb 2017 13:53:22 -0500 Subject: [PATCH] FAB-2133 Fix marbles02 delete Fix marbles02 chaincode example delete function. Change-Id: I80bddc3b7020f748be5df5fd483c8260f11eb706 Signed-off-by: denyeart --- examples/chaincode/go/marbles02/marbles_chaincode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/chaincode/go/marbles02/marbles_chaincode.go b/examples/chaincode/go/marbles02/marbles_chaincode.go index 534fd70b58b..43ed81a5541 100644 --- a/examples/chaincode/go/marbles02/marbles_chaincode.go +++ b/examples/chaincode/go/marbles02/marbles_chaincode.go @@ -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)