Closed juntao closed 5 years ago
filter logic was changed to:
filteredRes = Object.values(response).filter(function(obj){
var lowerCaseBlacklist = blacklist.map(function (addr) {
return addr.toLowerCase()
});
if(lowerCaseBlacklist.indexOf(obj._source.contractAddress.toLowerCase()) == -1)
return obj
})
We should do upper case comparisons when trying to match addresses to the whitelist or blacklist