From 5f26bb832b89f69ce9c6a1ac02611b7754dc0d8b Mon Sep 17 00:00:00 2001 From: Guillaume Ballet Date: Thu, 7 Sep 2017 14:48:23 +0200 Subject: [PATCH] whisper: fixed missing web3 js function names to match go names. - `setMaxMessageLength` has been renamed to `setMaxMessageSize`, update the js code. - `subscribe` and `unsubscribe` are not supported by the console, and their presence comes from a naming conflict with an old verision of `newMessageFilter`. --- internal/web3ext/web3ext.go | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/internal/web3ext/web3ext.go b/internal/web3ext/web3ext.go index bf1db88196..6492d80e8c 100644 --- a/internal/web3ext/web3ext.go +++ b/internal/web3ext/web3ext.go @@ -532,8 +532,8 @@ web3._extend({ property: 'shh', methods: [ new web3._extend.Method({ - name: 'setMaxMessageLength', - call: 'shh_setMaxMessageLength', + name: 'setMaxMessageSize', + call: 'shh_setMaxMessageSize', params: 1 }), new web3._extend.Method({ @@ -599,16 +599,6 @@ web3._extend({ call: 'shh_deleteSymKey', params: 1 }), - new web3._extend.Method({ - name: 'subscribe', - call: 'shh_subscribe', - params: 2 - }), - new web3._extend.Method({ - name: 'unsubscribe', - call: 'shh_unsubscribe', - params: 1 - }), new web3._extend.Method({ name: 'post', call: 'shh_post',