From 6a1d468c1003d72daab1e6239aafaf70d89458a5 Mon Sep 17 00:00:00 2001 From: Tiyo Date: Sat, 10 Aug 2024 15:59:33 +0800 Subject: [PATCH] fix bug --- packages/client/src/pages/game/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/client/src/pages/game/index.tsx b/packages/client/src/pages/game/index.tsx index f614b53..92ff298 100644 --- a/packages/client/src/pages/game/index.tsx +++ b/packages/client/src/pages/game/index.tsx @@ -550,7 +550,8 @@ const Game = () => { // 每隔1s获取一次getBlockNumber const interval = setInterval(async () => { const currentBlockNumber = await network.publicClient.getBlockNumber() - if (currentBlockNumber - blockNumber >= 2) { + console.log(currentBlockNumber, blockNumber) + if (currentBlockNumber - blockNumber >= 5) { clearInterval(interval) let boxData = await revealBox(id) boxData.id = id