From 507241f73ce1eadc2a0072999a06ffa0246eb1ba Mon Sep 17 00:00:00 2001 From: Jeffrey Wilcke Date: Mon, 12 Jan 2015 18:34:37 +0100 Subject: [PATCH 1/3] shh getMessage => getMessages --- lib/web3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/web3.js b/lib/web3.js index 9a85c4d1bd..2fe414259a 100644 --- a/lib/web3.js +++ b/lib/web3.js @@ -150,7 +150,7 @@ var shhWatchMethods = function () { return [ { name: 'newFilter', call: 'shh_newFilter' }, { name: 'uninstallFilter', call: 'shh_uninstallFilter' }, - { name: 'getMessage', call: 'shh_getMessages' } + { name: 'getMessages', call: 'shh_getMessages' } ]; }; From e97478cc1e252f8963552028ff34a3bc3bdacd63 Mon Sep 17 00:00:00 2001 From: aaron Date: Fri, 16 Jan 2015 16:03:13 -0800 Subject: [PATCH 2/3] WebsocketProvider - fixed incorrect variable name --- lib/websocket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/websocket.js b/lib/websocket.js index 5b40075e43..6d61d35d6c 100644 --- a/lib/websocket.js +++ b/lib/websocket.js @@ -71,7 +71,7 @@ WebSocketProvider.prototype.unload = function() { this.ws.close(); }; Object.defineProperty(WebSocketProvider.prototype, "onmessage", { - set: function(provider) { this.onMessage(provider); } + set: function(handler) { this.onMessage(handler); } }); if (typeof(module) !== "undefined") From 063f69d51d6a8a703d2f4a4eadcbb3c35f870c91 Mon Sep 17 00:00:00 2001 From: wanderer Date: Sat, 24 Jan 2015 19:32:26 -0500 Subject: [PATCH 3/3] added local --- lib/local.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lib/local.js diff --git a/lib/local.js b/lib/local.js new file mode 100644 index 0000000000..30cd14df23 --- /dev/null +++ b/lib/local.js @@ -0,0 +1,18 @@ +var addressName = {"0x12378912345789": "Gav", "0x57835893478594739854": "Jeff"}; +var nameAddress = {}; + +for (var prop in addressName) { + if (addressName.hasOwnProperty(prop)) { + nameAddress[addressName[prop]] = prop; + } +} + +var local = { + addressBook:{ + byName: addressName, + byAddress: nameAddress + } +}; + +if (typeof(module) !== "undefined") + module.exports = local;