diff --git a/chaincode/abstore/java/src/main/java/org/hyperledger/fabric-samples/ABstore.java b/chaincode/abstore/java/src/main/java/org/hyperledger/fabric-samples/ABstore.java index e7cfd3d135..39ae6db4cc 100644 --- a/chaincode/abstore/java/src/main/java/org/hyperledger/fabric-samples/ABstore.java +++ b/chaincode/abstore/java/src/main/java/org/hyperledger/fabric-samples/ABstore.java @@ -24,10 +24,6 @@ public class ABstore extends ChaincodeBase { public Response init(ChaincodeStub stub) { try { _logger.info("Init java simple chaincode"); - String func = stub.getFunction(); - if (!func.equals("init")) { - return newErrorResponse("function other than init is not supported"); - } List args = stub.getParameters(); if (args.size() != 4) { newErrorResponse("Incorrect number of arguments. Expecting 4");