mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-27 10:48:22 +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'>
|
||||
): PromiseAction<void> => async (dispatch: Dispatch, getState: GetState): Promise<void> => {
|
||||
const shortcut = payload.coin.shortcut.toLowerCase();
|
||||
const { block } = payload;
|
||||
if (getState().router.location.state.network !== shortcut) return;
|
||||
|
||||
const { config } = getState().localStorage;
|
||||
@ -95,7 +96,7 @@ export const onBlockMined = (
|
||||
await dispatch(EthereumBlockchainActions.onBlockMined(shortcut));
|
||||
break;
|
||||
case 'ripple':
|
||||
await dispatch(RippleBlockchainActions.onBlockMined(shortcut));
|
||||
await dispatch(RippleBlockchainActions.onBlockMined(shortcut, block));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user