diff --git a/src/actions/TxActions.js b/src/actions/TxActions.js index db5a2542..e3d35cd5 100644 --- a/src/actions/TxActions.js +++ b/src/actions/TxActions.js @@ -60,27 +60,4 @@ export const prepareEthereumTx = (tx: EthereumTxRequest): PromiseAction => async (): Promise => { const ethTx = new EthereumjsTx(tx); return `0x${ethTx.serialize().toString('hex')}`; -}; - -// type RippleTxRequest = { -// network: string; -// from: string; -// to: string; -// amount: string; -// data: string; -// gasLimit: string; -// gasPrice: string; -// nonce: number; -// } - -// export const prepareRippleTx = (tx: RippleTxRequest): PromiseAction => async (dispatch: Dispatch): Promise => { -// // TODO: fetch account sequence -// return { -// fee: string, -// flags?: number, -// sequence?: number, -// maxLedgerVersion?: number, // Proto: "last_ledger_sequence" -// payment: Payment, -// } - -// }; \ No newline at end of file +}; \ No newline at end of file diff --git a/src/actions/ethereum/BlockchainActions.js b/src/actions/ethereum/BlockchainActions.js index 355ffda2..fc27ce05 100644 --- a/src/actions/ethereum/BlockchainActions.js +++ b/src/actions/ethereum/BlockchainActions.js @@ -17,7 +17,6 @@ import * as AccountsActions from 'actions/AccountsActions'; export const discoverAccount = (device: TrezorDevice, address: string, network: string): PromiseAction => async (dispatch: Dispatch): Promise => { // get data from connect - // Temporary disabled, enable after trezor-connect@5.0.32 release const txs = await TrezorConnect.ethereumGetAccountInfo({ account: { address, @@ -35,7 +34,6 @@ export const discoverAccount = (device: TrezorDevice, address: string, network: // blockbook web3 fallback const web3account = await dispatch(Web3Actions.discoverAccount(address, network)); - // return { transactions: txs.payload, ...web3account }; return { address, transactions: txs.payload.transactions, diff --git a/src/actions/ripple/DiscoveryActions.js b/src/actions/ripple/DiscoveryActions.js index c4c82b26..b87c7310 100644 --- a/src/actions/ripple/DiscoveryActions.js +++ b/src/actions/ripple/DiscoveryActions.js @@ -36,7 +36,6 @@ export const discoverAccount = (device: TrezorDevice, discoveryProcess: Discover const { accountIndex } = discoveryProcess; const path = network.bip44.slice(0).replace('a', accountIndex.toString()); - // $FlowIssue npm not released yet const response = await TrezorConnect.rippleGetAccountInfo({ device: { path: device.path, diff --git a/src/actions/ripple/SendFormActions.js b/src/actions/ripple/SendFormActions.js index 17e9928d..c4ae7304 100644 --- a/src/actions/ripple/SendFormActions.js +++ b/src/actions/ripple/SendFormActions.js @@ -72,7 +72,7 @@ export const observe = (prevState: ReducersState, action: Action): ThunkAction = /* * Called from "observe" action -* Initialize "sendForm" reducer data +* Initialize "sendFormRipple" reducer data * Get data either from session storage or "selectedAccount" reducer */ export const init = (): AsyncAction => async (dispatch: Dispatch, getState: GetState): Promise => { @@ -85,7 +85,6 @@ export const init = (): AsyncAction => async (dispatch: Dispatch, getState: GetS const stateFromStorage = dispatch(SessionStorageActions.loadRippleDraftTransaction()); if (stateFromStorage) { - // TODO: consider if current gasPrice should be set here as "recommendedGasPrice" dispatch({ type: SEND.INIT, networkType: 'ripple',