Ensure Etherscan result is valid before reading it (#7426)

feature/default_network_editable
Whymarrh Whitby 5 years ago committed by GitHub
parent 5e84c5055c
commit 00e43d0b47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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) => {

Loading…
Cancel
Save