diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-10-30 00:14:59 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-10-30 00:14:59 +0800 |
commit | cb607b4911711501a8e70db0fe2148c51272c719 (patch) | |
tree | 066a6280876d2c6c05788989d1f0610be37b4b46 /main.js | |
parent | 31c6159019d330d27c086343257902c97de3a8ae (diff) | |
download | go-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.js | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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) { |