This commit is contained in:
aozhiwei 2023-07-03 17:38:19 +08:00
parent a209eaf56b
commit b6f287e83b

View File

@ -62,8 +62,7 @@ class PullBcEvent extends BaseService {
} }
getInstanceName() { getInstanceName() {
const eventConf = this.event['eventConf']; const instName = this.getNetId() + '.' + this.getContractByName() + '.' + this.getEventName();
const instName = this.getNetId() + '.' + eventConf['contract_name'] + eventConf['event_name'] ;
return instName; return instName;
} }
@ -209,6 +208,10 @@ class PullBcEvent extends BaseService {
return ''; return '';
} }
getContractName() {
return this.eventConf['contract_name'];
}
} }
module.exports = PullBcEvent; module.exports = PullBcEvent;