Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #127 from edevil/fix_case
Browse files Browse the repository at this point in the history
Fix issue with different case in addresses
  • Loading branch information
mikeseese authored Jun 26, 2018
2 parents d3477d6 + 81b11c4 commit c5efa4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/statemanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ StateManager.prototype.getLogs = function(filter, callback) {

// Filter logs that match the address
var filtered = blockLogs.filter(function(log) {
return (expectedAddress == null || log.address == expectedAddress);
return (expectedAddress == null || log.address.toLowerCase() == expectedAddress.toLowerCase());
});

// Now filter based on topics.
Expand Down

0 comments on commit c5efa4f

Please sign in to comment.