mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
internal/web3ext: fix swarmfs wrappers
Remove inputFormatter specifications so users get an error when passing the wrong number of arguments.
This commit is contained in:
parent
40818ab287
commit
cfea375faa
1 changed files with 19 additions and 24 deletions
|
|
@ -29,10 +29,8 @@ var Modules = map[string]string{
|
||||||
"shh": Shh_JS,
|
"shh": Shh_JS,
|
||||||
"swarmfs": SWARMFS_JS,
|
"swarmfs": SWARMFS_JS,
|
||||||
"txpool": TxPool_JS,
|
"txpool": TxPool_JS,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const Chequebook_JS = `
|
const Chequebook_JS = `
|
||||||
web3._extend({
|
web3._extend({
|
||||||
property: 'chequebook',
|
property: 'chequebook',
|
||||||
|
|
@ -491,28 +489,25 @@ web3._extend({
|
||||||
`
|
`
|
||||||
const SWARMFS_JS = `
|
const SWARMFS_JS = `
|
||||||
web3._extend({
|
web3._extend({
|
||||||
property: 'swarmfs',
|
property: 'swarmfs',
|
||||||
methods:
|
methods:
|
||||||
[
|
[
|
||||||
new web3._extend.Method({
|
new web3._extend.Method({
|
||||||
name: 'mount',
|
name: 'mount',
|
||||||
call: 'swarmfs_mount',
|
call: 'swarmfs_mount',
|
||||||
params: 2,
|
params: 2
|
||||||
inputFormatter: [null,null]
|
}),
|
||||||
}),
|
new web3._extend.Method({
|
||||||
new web3._extend.Method({
|
name: 'unmount',
|
||||||
name: 'unmount',
|
call: 'swarmfs_unmount',
|
||||||
call: 'swarmfs_unmount',
|
params: 1
|
||||||
params: 1,
|
}),
|
||||||
inputFormatter: [null]
|
new web3._extend.Method({
|
||||||
}),
|
name: 'listmounts',
|
||||||
new web3._extend.Method({
|
call: 'swarmfs_listmounts',
|
||||||
name: 'listmounts',
|
params: 0
|
||||||
call: 'swarmfs_listmounts',
|
})
|
||||||
params: 0,
|
]
|
||||||
inputFormatter: []
|
|
||||||
})
|
|
||||||
]
|
|
||||||
});
|
});
|
||||||
`
|
`
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue