mirror of
https://github.com/trezor/trezor-wallet
synced 2025-02-17 10:32:01 +00:00
pass block number to xrp's onBlockMined
This commit is contained in:
parent
89fa7d3177
commit
c1fdada46d
@ -84,6 +84,7 @@ export const onBlockMined = (
|
|||||||
payload: $ElementType<BlockchainBlock, 'payload'>
|
payload: $ElementType<BlockchainBlock, 'payload'>
|
||||||
): PromiseAction<void> => async (dispatch: Dispatch, getState: GetState): Promise<void> => {
|
): PromiseAction<void> => async (dispatch: Dispatch, getState: GetState): Promise<void> => {
|
||||||
const shortcut = payload.coin.shortcut.toLowerCase();
|
const shortcut = payload.coin.shortcut.toLowerCase();
|
||||||
|
const { block } = payload;
|
||||||
if (getState().router.location.state.network !== shortcut) return;
|
if (getState().router.location.state.network !== shortcut) return;
|
||||||
|
|
||||||
const { config } = getState().localStorage;
|
const { config } = getState().localStorage;
|
||||||
@ -95,7 +96,7 @@ export const onBlockMined = (
|
|||||||
await dispatch(EthereumBlockchainActions.onBlockMined(shortcut));
|
await dispatch(EthereumBlockchainActions.onBlockMined(shortcut));
|
||||||
break;
|
break;
|
||||||
case 'ripple':
|
case 'ripple':
|
||||||
await dispatch(RippleBlockchainActions.onBlockMined(shortcut));
|
await dispatch(RippleBlockchainActions.onBlockMined(shortcut, block));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user