mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-30 19:00:53 +00:00
send account to blockchain subscribe method
This commit is contained in:
parent
1750bb41dc
commit
45583ac477
@ -170,10 +170,9 @@ export const onNotification = (payload: any): PromiseAction<void> => async (disp
|
||||
|
||||
|
||||
export const subscribe = (network: string): PromiseAction<void> => async (dispatch: Dispatch, getState: GetState): Promise<void> => {
|
||||
const addresses: Array<string> = getState().accounts.filter(a => a.network === network).map(a => a.address); // eslint-disable-line no-unused-vars
|
||||
const accounts: Array<string> = getState().accounts.filter(a => a.network === network).map(a => a.address); // eslint-disable-line no-unused-vars
|
||||
await TrezorConnect.blockchainSubscribe({
|
||||
// accounts: addresses,
|
||||
accounts: [],
|
||||
accounts,
|
||||
coin: network,
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user