Skip to content

Commit

Permalink
Merge pull request #4 from windingtree/fix/allowed-networks
Browse files Browse the repository at this point in the history
fix: 🐛 Fixed allowedNetworksByMode
  • Loading branch information
kostysh authored Aug 30, 2022
2 parents b506ce0 + 1bde8b0 commit 1df50e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,6 @@ export const getNetworkInfo = (chainId: number): NetworkInfo => {
return Object.freeze(chain);
};

// Returns 'requested' OR 'prod' networks of type
// Returns 'requested' networks of type
export const getNetworksByMode = (mode: NetworkMode): readonly NetworkInfo[] =>
Object.freeze(allowedNetworks.filter((n) => n.mode.includes(mode) || n.mode.includes('prod')));
Object.freeze(allowedNetworks.filter((n) => n.mode.includes(mode)));

0 comments on commit 1df50e7

Please sign in to comment.