internal/web3ext: improve some web3 apis (#21639)
* imporve some web3-ext apis * Update web3ext.go Co-authored-by: Felix Lange <fjl@twurst.com>
This commit is contained in:
parent
348c3bc47d
commit
5c6155f9f4
@ -237,7 +237,8 @@ web3._extend({
|
||||
new web3._extend.Method({
|
||||
name: 'printBlock',
|
||||
call: 'debug_printBlock',
|
||||
params: 1
|
||||
params: 1,
|
||||
outputFormatter: console.log
|
||||
}),
|
||||
new web3._extend.Method({
|
||||
name: 'getBlockRlp',
|
||||
@ -248,7 +249,7 @@ web3._extend({
|
||||
name: 'testSignCliqueBlock',
|
||||
call: 'debug_testSignCliqueBlock',
|
||||
params: 2,
|
||||
inputFormatters: [web3._extend.formatters.inputAddressFormatter, null],
|
||||
inputFormatter: [web3._extend.formatters.inputAddressFormatter, null],
|
||||
}),
|
||||
new web3._extend.Method({
|
||||
name: 'setHead',
|
||||
@ -263,7 +264,8 @@ web3._extend({
|
||||
new web3._extend.Method({
|
||||
name: 'dumpBlock',
|
||||
call: 'debug_dumpBlock',
|
||||
params: 1
|
||||
params: 1,
|
||||
inputFormatter: [web3._extend.formatters.inputBlockNumberFormatter]
|
||||
}),
|
||||
new web3._extend.Method({
|
||||
name: 'chaindbProperty',
|
||||
@ -415,7 +417,7 @@ web3._extend({
|
||||
name: 'traceBlockByNumber',
|
||||
call: 'debug_traceBlockByNumber',
|
||||
params: 2,
|
||||
inputFormatter: [null, null]
|
||||
inputFormatter: [web3._extend.formatters.inputBlockNumberFormatter, null]
|
||||
}),
|
||||
new web3._extend.Method({
|
||||
name: 'traceBlockByHash',
|
||||
@ -522,7 +524,8 @@ web3._extend({
|
||||
new web3._extend.Method({
|
||||
name: 'getHeaderByNumber',
|
||||
call: 'eth_getHeaderByNumber',
|
||||
params: 1
|
||||
params: 1,
|
||||
inputFormatter: [web3._extend.formatters.inputBlockNumberFormatter]
|
||||
}),
|
||||
new web3._extend.Method({
|
||||
name: 'getHeaderByHash',
|
||||
|
Loading…
Reference in New Issue
Block a user