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`.
This commit is contained in:
Guillaume Ballet 2017-09-07 14:48:23 +02:00
parent c4d21bc8e5
commit 5f26bb832b

View file

@ -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',