mirror of https://github.com/embarklabs/embark.git
Merge pull request #754 from embark-framework/bug_fix/await-hang
Fix hang by not intercepting web3 transactions
This commit is contained in:
commit
f63f10f4c3
|
@ -80,8 +80,8 @@ class CodeRunner {
|
|||
this.ipc.broadcast("runcode:newCommand", {code});
|
||||
}
|
||||
|
||||
if (result instanceof Promise) {
|
||||
return result.then((value) => cb(null, value)).catch(cb);
|
||||
if (result instanceof Promise && !result.on) {
|
||||
return result.then((value) => { cb(null, value); }).catch(cb);
|
||||
}
|
||||
|
||||
cb(null, result);
|
||||
|
|
|
@ -23,7 +23,6 @@ contract("SimpleStorage", function () {
|
|||
});
|
||||
|
||||
it("set storage value", function (done) {
|
||||
// await SimpleStorage.methods.set(150).send();
|
||||
Utils.secureSend(web3, SimpleStorage.methods.set(150), {}, false, async function(err) {
|
||||
if (err) {
|
||||
return done(err);
|
||||
|
|
Loading…
Reference in New Issue