9 lines
289 B
JavaScript
9 lines
289 B
JavaScript
// @flow
|
|
|
|
import { isTestnet } from '../../config/is-testnet';
|
|
import { TESTNET, MAINNET } from '../constants/zcash-network';
|
|
|
|
export const getLatestAddressKey = (type: string) => `LATEST_${type === 'shielded' ? 'SHIELDED' : 'TRANSPARENT'}_ADDRESS_${
|
|
isTestnet() ? TESTNET : MAINNET
|
|
}`;
|