Skip to content

Commit

Permalink
update addNetwork (lodash removal changes)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarah Bush committed Mar 24, 2022
1 parent 65d42f3 commit 6f0a0ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/bitcore-lib/lib/networks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] = [];
Expand Down

0 comments on commit 6f0a0ab

Please sign in to comment.