From c741f576c0b439b856eddbdc9f7fbc93ab01e18b Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 24 Oct 2023 14:46:28 +0200 Subject: [PATCH] fix listening on new block --- libs/remix-lib/src/execution/txListener.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/remix-lib/src/execution/txListener.ts b/libs/remix-lib/src/execution/txListener.ts index ad62bfd33a..27d6a40f6b 100644 --- a/libs/remix-lib/src/execution/txListener.ts +++ b/libs/remix-lib/src/execution/txListener.ts @@ -157,7 +157,7 @@ export class TxListener { } async _startListenOnNetwork () { - let lastSeenBlock = this.executionContext.lastBlock?.number - 1 + let lastSeenBlock = this.executionContext.lastBlock?.number - BigInt(1) let processingBlock = false const processBlocks = async () => {