Commit b402484e authored by Marek Kotewicz's avatar Marek Kotewicz

common changes

parent 04845d42
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -88,7 +88,8 @@ var ethMethods = function () { ...@@ -88,7 +88,8 @@ var ethMethods = function () {
{ name: 'compilers', call: 'eth_compilers' }, { name: 'compilers', call: 'eth_compilers' },
{ name: 'lll', call: 'eth_lll' }, { name: 'lll', call: 'eth_lll' },
{ name: 'solidity', call: 'eth_solidity' }, { name: 'solidity', call: 'eth_solidity' },
{ name: 'serpent', call: 'eth_serpent' } { name: 'serpent', call: 'eth_serpent' },
{ name: 'logs', call: 'eth_logs' }
]; ];
return methods; return methods;
}; };
...@@ -134,7 +135,7 @@ var ethWatchMethods = function () { ...@@ -134,7 +135,7 @@ var ethWatchMethods = function () {
return [ return [
{ name: 'newFilter', call: newFilter }, { name: 'newFilter', call: newFilter },
{ name: 'uninstallFilter', call: 'eth_uninstallFilter' }, { name: 'uninstallFilter', call: 'eth_uninstallFilter' },
{ name: 'getMessages', call: 'eth_getMessages' } { name: 'getMessages', call: 'eth_filterLogs' }
]; ];
}; };
...@@ -439,6 +440,10 @@ Filter.prototype.messages = function() { ...@@ -439,6 +440,10 @@ Filter.prototype.messages = function() {
}); });
}; };
Filter.prototype.logs = function () {
return this.messages();
};
function messageHandler(data) { function messageHandler(data) {
if(data._event !== undefined) { if(data._event !== undefined) {
web3.trigger(data._event, data._id, data.data); web3.trigger(data._event, data._id, data.data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment