Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TiyoSheng committed Aug 9, 2024
1 parent abd1144 commit 7c11fdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/client/src/pages/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,12 @@ const Home = () => {
let blockNumber = await network.publicClient.getBlockNumber()
let interval = setInterval(async () => {
let currentBlockNumber = await network.publicClient.getBlockNumber()
if (currentBlockNumber - blockNumber >= 2) {
if (currentBlockNumber - blockNumber >= 3) {
clearInterval(interval)
let tokenIds = await Promise.all([userContract.getUserTokenIdList(), lootContract.getUserTokenIdList()])
userTokenIds = tokenIds[0]
lootTokenIds = tokenIds[1]
console.log(userTokenIds, lootTokenIds, 'userTokenIds, lootTokenIds', tokenIds)
let revealres = await pluginContract.multRevealNFT(lootTokenIds[0].toString(), userTokenIds[0].toString())
console.log(revealres, 'revealres')
await revealres.wait()
Expand Down

0 comments on commit 7c11fdd

Please sign in to comment.