diff --git a/lib/core/modules/coderunner/codeRunner.js b/lib/core/modules/coderunner/codeRunner.js index 3fccdfd2..61fbbd89 100644 --- a/lib/core/modules/coderunner/codeRunner.js +++ b/lib/core/modules/coderunner/codeRunner.js @@ -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); diff --git a/test_apps/test_app/test/simple_storage_spec.js b/test_apps/test_app/test/simple_storage_spec.js index 5596da69..eb5c4662 100644 --- a/test_apps/test_app/test/simple_storage_spec.js +++ b/test_apps/test_app/test/simple_storage_spec.js @@ -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);