This commit is contained in:
aozhiwei 2023-07-03 18:04:28 +08:00
parent 628e43225b
commit 9c0b633dc9

View File

@ -54,11 +54,6 @@ class PullBcEvent extends BaseService {
}
}
getInstanceName() {
const instName = this.getNetId() + '.' + this.getContractByName() + '.' + this.getEventName();
return instName;
}
async processEvents(events, fromBlock, toBlock) {
this.progInfo['fromBlock'] = fromBlock;
this.progInfo['toBlock'] = toBlock;
@ -213,6 +208,11 @@ class PullBcEvent extends BaseService {
return this.eventConf['contract_name'];
}
getInstanceName() {
const instName = this.getNetId() + '.' + this.getContractByName() + '.' + this.getEventName();
return instName;
}
}
module.exports = PullBcEvent;