Merge branch 'jlindberg-oss-jlindberg-oss-gethistory'

This commit is contained in:
Richard Moore 2018-04-14 17:06:15 -04:00
commit 86df2306c4
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

View File

@ -59,8 +59,8 @@ utils.defineProperty(EtherscanProvider.prototype, '_callProxy', function() {
});
function getResult(result) {
// getLogs has weird success responses
if (result.status == 0 && result.message === 'No records found') {
// getLogs, getHistory have weird success responses
if (result.status == 0 && (result.message === 'No records found' || result.message === 'No transactions found')) {
return result.result;
}