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)