From 6f0a0abd8dcd82bfb8019040ae0dd6fcc01b6d92 Mon Sep 17 00:00:00 2001 From: Sarah Bush Date: Thu, 24 Mar 2022 16:58:25 -0400 Subject: [PATCH] update addNetwork (lodash removal changes) --- packages/bitcore-lib/lib/networks.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/bitcore-lib/lib/networks.js b/packages/bitcore-lib/lib/networks.js index bd869564ac1..5c27ddf19a5 100644 --- a/packages/bitcore-lib/lib/networks.js +++ b/packages/bitcore-lib/lib/networks.js @@ -97,7 +97,8 @@ function addNetwork(data) { dnsSeeds: data.dnsSeeds }); } - network.forEach(function(value) { + + Object.values(network).forEach(function(value) { if (!['undefined', 'object'].includes(typeof value)) { if (!networkMaps[value]) { networkMaps[value] = [];