Merge pull request #20781 from karalabe/fix-clique-console-apis

internal/web3ext: fix clique console apis to work on missing arguments
This commit is contained in:
Péter Szilágyi 2020-03-19 10:06:44 +02:00 committed by GitHub
commit 0e6ea9199c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ web3._extend({
name: 'getSnapshot',
call: 'clique_getSnapshot',
params: 1,
inputFormatter: [web3._extend.utils.fromDecimal]
inputFormatter: [web3._extend.formatters.inputBlockNumberFormatter]
}),
new web3._extend.Method({
name: 'getSnapshotAtHash',
@ -85,7 +85,7 @@ web3._extend({
name: 'getSigners',
call: 'clique_getSigners',
params: 1,
inputFormatter: [web3._extend.utils.fromDecimal]
inputFormatter: [web3._extend.formatters.inputBlockNumberFormatter]
}),
new web3._extend.Method({
name: 'getSignersAtHash',