public override Response Invoke(IChaincodeStub stub) { Assert.AreEqual(stub.Function, "invoke"); Assert.AreEqual(stub.Args.Count, 3); string aKey = stub.StringArgs[1]; Assert.AreEqual(aKey, "a"); string aVal = stub.GetStringState(aKey); stub.PutState(aKey, ByteString.CopyFromUtf8("120").ToByteArray()); stub.DelState("delKey"); return(NewSuccessResponse("OK response2")); }