From 6ad73547eb4da15bbe47f7a43a26a3bbec4a5af6 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Wed, 1 Apr 2015 17:28:52 -0300 Subject: [PATCH] fix getAddressActivity method in blockchain explorer --- lib/blockchainexplorer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blockchainexplorer.js b/lib/blockchainexplorer.js index 062b085..388f3c4 100644 --- a/lib/blockchainexplorer.js +++ b/lib/blockchainexplorer.js @@ -59,7 +59,7 @@ function getTransactionsInsight(url, addresses, from, to, cb) { function getAddressActivityInsight(url, addresses, cb) { getTransactionsInsight(url, addresses, 0, 0, function(err, result) { if (err) return cb(err); - return cb(null, result.items > 0); + return cb(null, result.totalItems > 0); }); };