Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TiyoSheng committed Aug 10, 2024
1 parent 80a473a commit 6a1d468
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/client/src/pages/game/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a1d468

Please sign in to comment.