mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 09:23:48 +00:00
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:
parent
c4d21bc8e5
commit
5f26bb832b
1 changed files with 2 additions and 12 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue