mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Ensure Etherscan result is valid before reading it (#7426)
This commit is contained in:
parent
5e84c5055c
commit
00e43d0b47
@ -208,7 +208,7 @@ class IncomingTransactionsController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_processTxFetchResponse ({ status, result = [], address, currentNetworkID }) {
|
_processTxFetchResponse ({ status, result = [], address, currentNetworkID }) {
|
||||||
if (status !== '0' && result.length > 0) {
|
if (status === '1' && Array.isArray(result) && result.length > 0) {
|
||||||
const remoteTxList = {}
|
const remoteTxList = {}
|
||||||
const remoteTxs = []
|
const remoteTxs = []
|
||||||
result.forEach((tx) => {
|
result.forEach((tx) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user