Commit acf0829 1 parent 256279f commit acf0829 Copy full SHA for acf0829
File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ export const discoverySupportedNetworks = [
51
51
52
52
export const orderedNetworksSymbols = Object . keys ( networks ) as NetworkSymbol [ ] ;
53
53
54
- export const sortNetworks = ( networks : Network [ ] ) =>
55
- A . sort ( networks , ( a , b ) => {
54
+ export const sortNetworks = ( networksToSort : Network [ ] ) =>
55
+ A . sort ( networksToSort , ( a , b ) => {
56
56
const aOrder = orderedNetworksSymbols . indexOf ( a . symbol ) ;
57
57
const bOrder = orderedNetworksSymbols . indexOf ( b . symbol ) ;
58
58
@@ -68,8 +68,11 @@ export const filterTestnetNetworks = (
68
68
return networkSymbols . filter ( networkSymbol => ! isTestnet ( networkSymbol ) ) ;
69
69
} ;
70
70
71
- export const filterBlacklistedNetworks = ( networks : Network [ ] , allowList : NetworkSymbol [ ] ) =>
72
- networks . filter (
71
+ export const filterBlacklistedNetworks = (
72
+ networksToFilter : Network [ ] ,
73
+ allowList : NetworkSymbol [ ] ,
74
+ ) =>
75
+ networksToFilter . filter (
73
76
network =>
74
77
! discoveryBlacklist . includes ( network . symbol ) || allowList . includes ( network . symbol ) ,
75
78
) ;
You can’t perform that action at this time.
0 commit comments