Skip to content

Commit

Permalink
Merge pull request #6 from MetaMask/fix-estimateGas
Browse files Browse the repository at this point in the history
don't pass the block number to eth_estimateGas
  • Loading branch information
danfinlay authored Oct 9, 2018
2 parents 83486a0 + 130639b commit f788656
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion cache-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ function blockTagParamIndex (payload) {
case 'eth_call':
return 1
// blockTag is at index 0
case 'eth_estimateGas':
case 'eth_getBlockByNumber':
return 0
// there is no blockTag
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eth-json-rpc-middleware",
"version": "3.1.0",
"version": "3.1.1",
"main": "block-ref.js",
"directories": {
"test": "test"
Expand Down

0 comments on commit f788656

Please sign in to comment.