aboutsummaryrefslogtreecommitdiffstats
path: root/main.js
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2014-10-30 00:14:59 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2014-10-30 00:14:59 +0800
commitcb607b4911711501a8e70db0fe2148c51272c719 (patch)
tree066a6280876d2c6c05788989d1f0610be37b4b46 /main.js
parent31c6159019d330d27c086343257902c97de3a8ae (diff)
downloadgo-tangerine-cb607b4911711501a8e70db0fe2148c51272c719.tar
go-tangerine-cb607b4911711501a8e70db0fe2148c51272c719.tar.gz
go-tangerine-cb607b4911711501a8e70db0fe2148c51272c719.tar.bz2
go-tangerine-cb607b4911711501a8e70db0fe2148c51272c719.tar.lz
go-tangerine-cb607b4911711501a8e70db0fe2148c51272c719.tar.xz
go-tangerine-cb607b4911711501a8e70db0fe2148c51272c719.tar.zst
go-tangerine-cb607b4911711501a8e70db0fe2148c51272c719.zip
changes to make whisper working
Diffstat (limited to 'main.js')
-rw-r--r--main.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/main.js b/main.js
index 32064ce26..cc85b9850 100644
--- a/main.js
+++ b/main.js
@@ -131,11 +131,11 @@
}).then(function (request) {
return new Promise(function (resolve, reject) {
web3.provider.send(request, function (result) {
- if (result) {
+ if (result || typeof result === "boolean") {
resolve(result);
- } else {
- reject(result);
- }
+ return;
+ }
+ reject(result);
});
});
}).catch(function( err) {
@@ -373,6 +373,10 @@
});
};
+ Filter.prototype.arrived = function(callback) {
+ this.changed(callback);
+ }
+
Filter.prototype.changed = function(callback) {
var self = this;
this.promise.then(function(id) {