diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-11-18 20:59:17 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-11-18 20:59:17 +0800 |
commit | b402484e41c9579f33d70f8f8b191ab0074dad62 (patch) | |
tree | fcad7bcf7df6fdb72e69d8282d07fa570d9b399b /lib/main.js | |
parent | 04845d42c01b41fc428b3c604796e84d4e2ac9a1 (diff) | |
download | go-tangerine-b402484e41c9579f33d70f8f8b191ab0074dad62.tar go-tangerine-b402484e41c9579f33d70f8f8b191ab0074dad62.tar.gz go-tangerine-b402484e41c9579f33d70f8f8b191ab0074dad62.tar.bz2 go-tangerine-b402484e41c9579f33d70f8f8b191ab0074dad62.tar.lz go-tangerine-b402484e41c9579f33d70f8f8b191ab0074dad62.tar.xz go-tangerine-b402484e41c9579f33d70f8f8b191ab0074dad62.tar.zst go-tangerine-b402484e41c9579f33d70f8f8b191ab0074dad62.zip |
common changes
Diffstat (limited to 'lib/main.js')
-rw-r--r-- | lib/main.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/main.js b/lib/main.js index a8848674b..697cbdbc3 100644 --- a/lib/main.js +++ b/lib/main.js @@ -88,7 +88,8 @@ var ethMethods = function () { { name: 'compilers', call: 'eth_compilers' }, { name: 'lll', call: 'eth_lll' }, { name: 'solidity', call: 'eth_solidity' }, - { name: 'serpent', call: 'eth_serpent' } + { name: 'serpent', call: 'eth_serpent' }, + { name: 'logs', call: 'eth_logs' } ]; return methods; }; @@ -134,7 +135,7 @@ var ethWatchMethods = function () { return [ { name: 'newFilter', call: newFilter }, { name: 'uninstallFilter', call: 'eth_uninstallFilter' }, - { name: 'getMessages', call: 'eth_getMessages' } + { name: 'getMessages', call: 'eth_filterLogs' } ]; }; @@ -439,6 +440,10 @@ Filter.prototype.messages = function() { }); }; +Filter.prototype.logs = function () { + return this.messages(); +}; + function messageHandler(data) { if(data._event !== undefined) { web3.trigger(data._event, data._id, data.data); |