good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 5c6155f9 authored by mr_franklin's avatar mr_franklin Committed by GitHub
Browse files

internal/web3ext: improve some web3 apis (#21639)


* imporve some web3-ext apis

* Update web3ext.go

Co-authored-by: default avatarFelix Lange <fjl@twurst.com>
parent 348c3bc4
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment