Skip to content

Commit

Permalink
improved getLogs formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
frozeman committed Aug 8, 2018
1 parent 27f4dd6 commit 9bf5803
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/web3-core-helpers/src/formatters.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,13 @@ var inputLogFormatter = function(options) {
return utils.fromUtf8(value);
};

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

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


// make sure topics, get converted to hex
options.topics = options.topics || [];
options.topics = options.topics.map(function(topic){
Expand Down

0 comments on commit 9bf5803

Please sign in to comment.