Skip to content

Commit 9ced523

Browse files
committed
FAB-2133 Fix marbles02 delete
Fix marbles02 chaincode example delete function. Change-Id: I80bddc3b7020f748be5df5fd483c8260f11eb706 Signed-off-by: denyeart <[email protected]>
1 parent f7c19f8 commit 9ced523

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/chaincode/go/marbles02/marbles_chaincode.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func (t *SimpleChaincode) delete(stub shim.ChaincodeStubInterface, args []string
227227
return shim.Error(jsonResp)
228228
}
229229

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

0 commit comments

Comments
 (0)