mirror of
https://github.com/trezor/trezor-wallet
synced 2025-02-17 18:42:01 +00:00
removed Web3Service (unused)
This commit is contained in:
parent
7bb5e7f6e1
commit
0b3d6ef312
@ -1,28 +0,0 @@
|
|||||||
/* @flow */
|
|
||||||
|
|
||||||
|
|
||||||
import TrezorConnect, { TRANSPORT } from 'trezor-connect';
|
|
||||||
import * as WEB3 from 'actions/constants/web3';
|
|
||||||
|
|
||||||
import type {
|
|
||||||
Middleware,
|
|
||||||
MiddlewareAPI,
|
|
||||||
MiddlewareDispatch,
|
|
||||||
Action,
|
|
||||||
} from 'flowtype';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Middleware
|
|
||||||
*/
|
|
||||||
const Web3Service: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispatch) => (action: Action): Action => {
|
|
||||||
// pass action
|
|
||||||
next(action);
|
|
||||||
|
|
||||||
if (action.type === WEB3.START) {
|
|
||||||
api.dispatch(WalletActions.clearUnavailableDevicesData(prevState, action.device));
|
|
||||||
}
|
|
||||||
|
|
||||||
return action;
|
|
||||||
};
|
|
||||||
|
|
||||||
export default Web3Service;
|
|
@ -4,7 +4,6 @@ import RouterService from './RouterService';
|
|||||||
import LocalStorageService from './LocalStorageService';
|
import LocalStorageService from './LocalStorageService';
|
||||||
import CoinmarketcapService from './CoinmarketcapService';
|
import CoinmarketcapService from './CoinmarketcapService';
|
||||||
import TrezorConnectService from './TrezorConnectService';
|
import TrezorConnectService from './TrezorConnectService';
|
||||||
import Web3Service from './Web3Service';
|
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
WalletService,
|
WalletService,
|
||||||
|
Loading…
Reference in New Issue
Block a user