internal/web3ext: fix clique console apis to work on missing arguments

parent 4655b609
...@@ -74,7 +74,7 @@ web3._extend({ ...@@ -74,7 +74,7 @@ web3._extend({
name: 'getSnapshot', name: 'getSnapshot',
call: 'clique_getSnapshot', call: 'clique_getSnapshot',
params: 1, params: 1,
inputFormatter: [web3._extend.utils.fromDecimal] inputFormatter: [web3._extend.formatters.inputBlockNumberFormatter]
}), }),
new web3._extend.Method({ new web3._extend.Method({
name: 'getSnapshotAtHash', name: 'getSnapshotAtHash',
...@@ -85,7 +85,7 @@ web3._extend({ ...@@ -85,7 +85,7 @@ web3._extend({
name: 'getSigners', name: 'getSigners',
call: 'clique_getSigners', call: 'clique_getSigners',
params: 1, params: 1,
inputFormatter: [web3._extend.utils.fromDecimal] inputFormatter: [web3._extend.formatters.inputBlockNumberFormatter]
}), }),
new web3._extend.Method({ new web3._extend.Method({
name: 'getSignersAtHash', name: 'getSignersAtHash',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment