From 00e43d0b47e630f860226ee9723c99d917009573 Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Fri, 15 Nov 2019 13:47:42 -0330 Subject: [PATCH] Ensure Etherscan result is valid before reading it (#7426) --- app/scripts/controllers/incoming-transactions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/controllers/incoming-transactions.js b/app/scripts/controllers/incoming-transactions.js index 9ce6a4dd9..029bf47aa 100644 --- a/app/scripts/controllers/incoming-transactions.js +++ b/app/scripts/controllers/incoming-transactions.js @@ -208,7 +208,7 @@ class IncomingTransactionsController { } _processTxFetchResponse ({ status, result = [], address, currentNetworkID }) { - if (status !== '0' && result.length > 0) { + if (status === '1' && Array.isArray(result) && result.length > 0) { const remoteTxList = {} const remoteTxs = [] result.forEach((tx) => {