fix bug of event catcher

This commit is contained in:
CounterFire2023 2024-01-15 16:21:29 +08:00
parent 51d1ffe77e
commit 5ef4c8563e

View File

@ -10,7 +10,6 @@ import { NftHolder } from 'models/NftHolder'
import { TokenHolder } from 'models/TokenHolder'
import { NftStake } from 'models/NftStake'
import { IEventCfg } from "interface/IEventCfg";
import { parse } from "path";
let eventProcessers = {
NftHolder: NftHolder,
@ -62,7 +61,7 @@ export class EventBatchSvr {
params.push(_param)
} else {
let _param = uninParams[uninParams.length - 1]
if (!_param || topicsSet.size > 1) {
if (!_param || !topicsSet.has(cfg.topic)) {
_param = this.buildQueryParams(cfg, toBlock)
uninParams.push(_param)
topicsSet = new Set()