fix logging empty block

compilertrigger^2
yann300 2 years ago committed by Aniket
parent c44e2f745d
commit 8216332579
  1. 2
      libs/remix-ui/terminal/src/lib/actions/terminalAction.ts

@ -115,7 +115,7 @@ export const initListeningOnNetwork = (plugins, dispatch: React.Dispatch<any>) =
plugins.txListener.event.register(NEW_BLOCK, (block) => {
if (!block.transactions || (block.transactions && !block.transactions.length)) {
dispatch({ type: EMPTY_BLOCK, payload: { message: 0, provider } })
dispatch({ type: EMPTY_BLOCK, payload: { message: block.number, provider } })
}
})
plugins.txListener.event.register(KNOWN_TRANSACTION, () => {

Loading…
Cancel
Save