diff --git a/src/actions/ethereum/BlockchainActions.js b/src/actions/ethereum/BlockchainActions.js index 0a209433..b965d79e 100644 --- a/src/actions/ethereum/BlockchainActions.js +++ b/src/actions/ethereum/BlockchainActions.js @@ -135,66 +135,12 @@ export const onNotification = (payload: $ElementType p.id === payload.tx.txid && p.address === address); - // const exists = getState().pending.filter(p => p.address === address); - // if (exists.length < 1) { - // if (txInfo) { - // dispatch({ - // type: PENDING.ADD, - // payload: { - // type: 'send', - // id: payload.tx.txid, - // network, - // currency: 'tETH', - // amount: txInfo.value, - // total: '0', - // tx: {}, - // nonce: txInfo.nonce, - // address, - // rejected: false, - // }, - // }); - // } else { - // // tx info not found (yet?) - // // dispatch({ - // // type: PENDING.ADD_UNKNOWN, - // // payload: { - // // network, - // // ...payload.tx, - // // } - // // }); - // } - // } }; export const onError = (network: string): PromiseAction => async (dispatch: Dispatch): Promise => { diff --git a/src/actions/ethereum/SendFormActions.js b/src/actions/ethereum/SendFormActions.js index d38011bb..6ce41239 100644 --- a/src/actions/ethereum/SendFormActions.js +++ b/src/actions/ethereum/SendFormActions.js @@ -532,7 +532,7 @@ export const onSend = (): AsyncAction => async (dispatch: Dispatch, getState: Ge const blockchainNotification = { type: 'send', status: 'pending', - date: '', + confirmations: 0, address: account.address, inputs: [ { @@ -554,7 +554,7 @@ export const onSend = (): AsyncAction => async (dispatch: Dispatch, getState: Ge total: currentState.total, sequence: nonce, - currency: isToken ? currentState.currency : null, + currency: isToken ? currentState.currency : undefined, }; dispatch(BlockchainActions.onNotification({ diff --git a/src/actions/ripple/BlockchainActions.js b/src/actions/ripple/BlockchainActions.js index 12915d8f..94100f9b 100644 --- a/src/actions/ripple/BlockchainActions.js +++ b/src/actions/ripple/BlockchainActions.js @@ -50,20 +50,10 @@ export const onNotification = (payload: $ElementType