good morning!!!!

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

internal/web3ext: improve eth_getBlockByNumber and eth_getBlockByHash console api (#21608)

parent eebfb130
Branches
Tags
No related merge requests found
...@@ -532,12 +532,14 @@ web3._extend({ ...@@ -532,12 +532,14 @@ web3._extend({
new web3._extend.Method({ new web3._extend.Method({
name: 'getBlockByNumber', name: 'getBlockByNumber',
call: 'eth_getBlockByNumber', call: 'eth_getBlockByNumber',
params: 2 params: 2,
inputFormatter: [web3._extend.formatters.inputBlockNumberFormatter, function (val) { return !!val; }]
}), }),
new web3._extend.Method({ new web3._extend.Method({
name: 'getBlockByHash', name: 'getBlockByHash',
call: 'eth_getBlockByHash', call: 'eth_getBlockByHash',
params: 2 params: 2,
inputFormatter: [null, function (val) { return !!val; }]
}), }),
new web3._extend.Method({ new web3._extend.Method({
name: 'getRawTransaction', name: 'getRawTransaction',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment