This commit is contained in:
aozhiwei 2023-07-10 21:41:34 +08:00
parent b0786380d9
commit b54267f598

View File

@ -1,4 +1,4 @@
>const events = {};
const events = {};
async function internalAdd(clsName, modName) {
const modClass = require('./' + modName);
@ -28,10 +28,12 @@ async function init() {
}
function getEventHandle(eventProc) {
const clsName = eventProc.getContractName() + '.' + eventProc.getEventName();
return utils.hasKey(events, clsName) ? events[clsName] : null;
}
function createEventHandle(eventProc, eventHandle) {
const clsName = eventProc.getContractName() + '.' + eventProc.getEventName();
}