message: fix hard coded type
diff: @@ -155,22 +155,21 @@ int32_t ipc_client::check_transaction_authorization( const char* trx_data, u
  err = e.to_detail_string(); \
  }
  -int ipc_client::start(const char* ipc_path) {
  +int ipc_client::start(const char* ipc_dir) {
  while (true) {
  if (rpcclient) {
  delete rpcclient;
  }
  std::string addr("localhost");
  -// const char* ipc_path = "/tmp/pyeos.ipc";
  // stdcxx::shared_ptr<TTransport> socket(new TSocket(addr, 9191));
  - stdcxx::shared_ptr<TTransport> socket(new TSocket(ipc_path));
  + stdcxx::shared_ptr<TTransport> socket(new TSocket(ipc_dir));
  stdcxx::shared_ptr<TTransport> transport(new TBufferedTransport(socket));
  stdcxx::shared_ptr<TProtocol> protocol(new TBinaryProtocol(transport));
  rpcclient = new RpcServiceClient(protocol);
  while (true) {
  try {
  - if (access(ipc_path, F_OK) == -1) {
  + if (access(ipc_dir, F_OK) == -1) {
  wlog("waiting for server...");
  boost::this_thread::sleep_for(boost::chrono::milliseconds(500));
  continue;
  @@ -194,7 +193,8 @@ int ipc_client::start(const char* ipc_path) {
  rpcclient->apply_request(apply);
  wlog("+++++++++++apply_request return");
  try {
  - ret = vm_manager::get().apply(0, apply.receiver, apply.account, apply.action);
  + int type = db_api::get().get_code_type(apply.receiver);
  + ret = vm_manager::get().apply(type, apply.receiver, apply.account, apply.action);
  } FC_CATCH_EXC(err);
  wlog("+++++++++++++apply_finish ret ${n1} err ${n2}", ("n1", ret)("n2", err));
  rpcclient->apply_finish(ret, err);
  