mirror of https://github.com/embarklabs/embark.git
Fix connection to IPC
- Make sure the folder .embark exist otherwise the first time there is a run, the connection abort - Fix the number of args in the callback function
This commit is contained in:
parent
bed119a800
commit
53585cba50
|
@ -38,6 +38,7 @@ class IPC {
|
||||||
}
|
}
|
||||||
|
|
||||||
serve() {
|
serve() {
|
||||||
|
fs.mkdirpSync(fs.dappPath(".embark"));
|
||||||
ipc.serve(this.socketPath, () => {});
|
ipc.serve(this.socketPath, () => {});
|
||||||
ipc.server.start();
|
ipc.server.start();
|
||||||
|
|
||||||
|
@ -50,7 +51,7 @@ class IPC {
|
||||||
if (data.action !== action) {
|
if (data.action !== action) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let reply = function(replyData) {
|
let reply = function(_err, replyData) {
|
||||||
self.reply(socket, 'compile', replyData);
|
self.reply(socket, 'compile', replyData);
|
||||||
};
|
};
|
||||||
done(data.message, reply, socket);
|
done(data.message, reply, socket);
|
||||||
|
@ -66,7 +67,7 @@ class IPC {
|
||||||
if (msg.action !== action) {
|
if (msg.action !== action) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
cb(msg.message);
|
cb(null, msg.message);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -119,8 +119,8 @@ class Test {
|
||||||
web3: this.web3
|
web3: this.web3
|
||||||
});
|
});
|
||||||
this.engine.startService("deployment", {
|
this.engine.startService("deployment", {
|
||||||
trackContracts: false
|
trackContracts: false,
|
||||||
//ipcRole: 'client' // disabled for now due to issues with ipc file
|
ipcRole: 'client'
|
||||||
});
|
});
|
||||||
this.events.request('deploy:setGasLimit', 6000000);
|
this.events.request('deploy:setGasLimit', 6000000);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue