MyCrypto/common/features/transaction/sign/selectors.ts

8 lines
375 B
TypeScript

import { AppState } from 'features/reducers';
const getTransactionState = (state: AppState) => state.transaction;
export const getSignState = (state: AppState) => getTransactionState(state).sign;
export const getSignedTx = (state: AppState) => getSignState(state).local.signedTransaction;
export const getWeb3Tx = (state: AppState) => getSignState(state).web3.transaction;