diff --git a/src/actions/ethereum/BlockchainActions.js b/src/actions/ethereum/BlockchainActions.js index b1856d24..24e51ff4 100644 --- a/src/actions/ethereum/BlockchainActions.js +++ b/src/actions/ethereum/BlockchainActions.js @@ -48,7 +48,6 @@ export const getTokenInfo = (input: string, network: string): PromiseAction => async (dispatch: Dispatch): Promise => dispatch(Web3Actions.getTokenBalance(token)); - export const getGasPrice = (network: string, defaultGasPrice: number): PromiseAction => async (dispatch: Dispatch): Promise => { try { const gasPrice = await dispatch(Web3Actions.getCurrentGasPrice(network)); @@ -96,6 +95,9 @@ export const subscribe = (network: string): PromiseAction => async (dispat }; export const onBlockMined = (network: string): PromiseAction => async (dispatch: Dispatch, getState: GetState): Promise => { + // TODO: handle rollback, + // check latest saved transaction blockhash against blockhheight + // try to resolve pending transactions await dispatch(Web3Actions.resolvePendingTransactions(network));