Skip to content

Commit

Permalink
Revert "Allow 0 fromBlock, toBlock values (web3#3089)"
Browse files Browse the repository at this point in the history
This reverts commit c51c3b9.
  • Loading branch information
aonjintana authored Oct 25, 2019
1 parent 9dd09db commit 38a7f61
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 111 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ Released with 1.0.0-beta.37 code base.

### Fixed

- Fix allow `0` as a valid `fromBlock` or `toBlock` filter param (#1100)
- Fix randomHex returning inconsistent string lengths (#1490)
- Fix make isBN minification safe (#1777)
- Fix incorrect references to BigNumber in utils.fromWei and utils.toWei error messages (#2468)
Expand Down
4 changes: 2 additions & 2 deletions packages/web3-core-helpers/src/formatters.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,10 @@ var inputLogFormatter = function(options) {
return utils.fromUtf8(value);
};

if (options.fromBlock || options.fromBlock === 0)
if (options.fromBlock)
options.fromBlock = inputBlockNumberFormatter(options.fromBlock);

if (options.toBlock || options.toBlock === 0)
if (options.toBlock)
options.toBlock = inputBlockNumberFormatter(options.toBlock);


Expand Down
108 changes: 0 additions & 108 deletions test/formatters.inputLogFormatter.js

This file was deleted.

0 comments on commit 38a7f61

Please sign in to comment.