Skip to content

Commit

Permalink
internal/web3ext: improve eth_getBlockByNumber and eth_getBlockByHash…
Browse files Browse the repository at this point in the history
… console api (#21608)
  • Loading branch information
mrFranklin committed Sep 28, 2020
1 parent eebfb13 commit a04294d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/web3ext/web3ext.go
Original file line number Diff line number Diff line change
Expand Up @@ -532,12 +532,14 @@ web3._extend({
new web3._extend.Method({
name: 'getBlockByNumber',
call: 'eth_getBlockByNumber',
params: 2
params: 2,
inputFormatter: [web3._extend.formatters.inputBlockNumberFormatter, function (val) { return !!val; }]
}),
new web3._extend.Method({
name: 'getBlockByHash',
call: 'eth_getBlockByHash',
params: 2
params: 2,
inputFormatter: [null, function (val) { return !!val; }]
}),
new web3._extend.Method({
name: 'getRawTransaction',
Expand Down

0 comments on commit a04294d

Please sign in to comment.