mirror of
https://github.com/trezor/trezor-wallet
synced 2025-06-25 09:22:35 +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> => {
|
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({
|
await TrezorConnect.blockchainSubscribe({
|
||||||
// accounts: addresses,
|
accounts,
|
||||||
accounts: [],
|
|
||||||
coin: network,
|
coin: network,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user