mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-12 19:17:30 +00:00
* balance fetching * fix tests * bump deps * validate custom token form * equiv values * fix rates saga naming * address review comments
14 lines
417 B
JavaScript
14 lines
417 B
JavaScript
// @flow
|
|
import type { State } from 'reducers';
|
|
import { BaseNode } from 'libs/nodes';
|
|
import { NODES, NETWORKS } from 'config/data';
|
|
import type { NetworkConfig } from 'config/data';
|
|
|
|
export function getNodeLib(state: State): BaseNode {
|
|
return NODES[state.config.nodeSelection].lib;
|
|
}
|
|
|
|
export function getNetworkConfig(state: State): NetworkConfig {
|
|
return NETWORKS[NODES[state.config.nodeSelection].network];
|
|
}
|