Skip to content

Commit e792064

Browse files
authored
update block number calculation for query filter (#3443)
1 parent 993660d commit e792064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/apps/human-app/frontend/src/modules/governance-banner/hooks/use-active-proposal-query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async function fetchActiveProposalFn() {
3030
const logs = await contract.queryFilter(
3131
filter,
3232
env.VITE_NETWORK === 'mainnet'
33-
? 68058296
33+
? (await provider.getBlockNumber()) - 100000
3434
: (await provider.getBlockNumber()) - 10000,
3535
'latest'
3636
);

0 commit comments

Comments
 (0)